//mail_form-PV-CLASSIC-V3.40.00
//No customization required
//
// JavaScript Document
// Opens an email form in a new window without menus
// 
// The lay-out is defined in the file _mail_form.php
// you can change it as you wish, but don't forget to 
// change the default width and height if necessary
//
// Insert the following as a link:
// 			javascript:mail_form('recipient','subject')
// if no recipient is defined, 
// it takes the default value 'webmaster'
//
//
// To make it work you need the following:
//
//	- scripts/mail_form.js
//	- css/style-forms.css (customize as wanted...)
//	- _mail_form.php (customize as wanted...)
//	- _mail_form_post.php (*** requires site specific data! ***)
//	
//	- the following script in the common_java_scripts library item or in the Master template:
//	<script language="JavaScript" src="../scripts/mail_form.js"></script>
//
//
function mail_form(recipient,subject) {
if (isUndefined(recipient)) {
	var recipient = '';
	}
if (recipient == '') {
	var recipient = 'webmaster';
	}
if (isUndefined(subject)) {
	var subject = '';
	}
var newWindow = window.open('_mail_form.php?recipient=' + recipient + '&subject=' + subject,'PVmail','scrollbars= no,menubar= no,height= 500,width= 500,resizable=no,toolbar=no,location=no,status=no');
newWindow.focus ( );
}

function isUndefined(a) {
    return typeof a == 'undefined';
} 
	