function genForm() {
genWin = window.open('cgi-bin/af.cgi','eForm','left=50,top=50,menubar=no,toolbar=no,status=no,scrollbars=yes,width=450,height=225,resizable=yes');}
function popup1(url, width, height, left, top, menuBar, scrollbars) {
var popup1 = window.open(url,"popup1",'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',menuBar=' + menuBar + ',scrollbars=' + scrollbars + ',resizable=0');  
popup1.focus(); }


function isValidEmailAddress(emailAddress) {
	var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
	return pattern.test(emailAddress);
}
