// validate email (simple validate)

		

		function validate_email(field,alerttxt)

			{

			with (field)

			{

			apos=value.indexOf("@")

			dotpos=value.lastIndexOf(".")

			if (apos<1||dotpos-apos<2) 

			  {alert(alerttxt);return false}

			else {return true}

			}

			}

			

			function validate_form(thisform)

			{

			with (thisform)

			{					

			if (validate_email(email,"Not a valid e-mail address")==false)

			  {email.focus();return false}

			}

			}



// popup (print)

	

		function popUp(URL) {				

		day = new Date();				

		id = day.getTime();				

		eval("print" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=600');");				}			

	

// popup (email)

	

		function popUp2(URL) {				

		day = new Date();				

		id = day.getTime();				

		eval("email" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,height=260,width=390');");				

    //window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=390');    

    }			

	

