function openWindow(stPath,stNameWindow) {
   window.open(stPath,stNameWindow,"width=730,height=500,left=300,top=200,resizable=yes,scrollbars=1");
}

function openBareWindow(stPath,stNameWindow,l,t,w,h) {
   window.open(stPath,stNameWindow,"width=" + w + ",height=" + h + ",left=" + l + ",top=" + t + ",resizable=yes,scrollbars=1,location=no,menubar=no,toolbar=no");
}

//function verifyEmail(obj,ckFocus) 
function verifyEmail(obj) 
{
	checkEmail = obj.value

	if ((checkEmail.indexOf('@') < 0) || 
		((checkEmail.charAt(checkEmail.length-4) != '.') && 						
		 (checkEmail.charAt(checkEmail.length-3) != '.'))
	) 
	{
/*		obj.select();			
		if (ckFocus==true){
			obj.focus();			
		}
*/		return false;
	}
	return true; 
}

function checkRequired(objName,obj)
{
	return (obj.value != "");
}

function chkSubmit()
{
	var x = document.download_form;
/*
	if (checkRequired("Name",x.fullname)==false) { 
		alert("Name is required");
		x.fullname.focus();
		return false;
	}
	if (checkRequired("Company",x.company)==false) { 
		alert("Company is required");
		x.company.focus();
		return false;
	}
*/	
	if (checkRequired("Email",x.email)==false) { 
		alert("Email is required");
		x.email.focus();
		return false;
	}
	if (!verifyEmail(x.email)) {
		alert("You have entered an invalid email address. Please try again.");
		x.email.select();
//		x.email.focus();
		return false;
	}
	return true;

}
