// EMAIL VALIDATION
var emailregex = /^[a-z_0-9\.]+@[a-z_0-9\.]+\.[a-z]{2,3}$/i ;
function correct_email(str) {
   return emailregex.test(str)
}
function chkform(obj)
{
	for(var i=0; i<obj.length-1;i++)
	{
		if (obj[i].value=='' || obj[i].value==null || obj[i].value=='null')
		{
			alert("Please enter your info in this field.");
			obj[i].focus();
			return false;
		}
	}
	if(!correct_email(obj.email.value)) {
		alert("The Email Address entered is not a valid Email address");
		return false;
		}
    return true;
}


// TIME STAMP
function stamptime() {
    document.frmEmail.time.value = new Date();
}


// OPEN WINDOW 1
function open_window(url) {
window.open(url,"newWindow","toolbar=no,scrollbars=no,resizable=no,location=no,status=no,width=550,height=400");
}

// OPEN WINDOW FILE TRANSFER
function open_window_file(url) {
window.open(url,"newWindow_File","toolbar=no,scrollbars=no,resizable=no,location=no,status=no,width=550,height=400");
}

