function chkform1()
{
	var msg = '';
	var emailReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
	
	
	if (document.form1.email.value == "") { msg = 'Please fill in email \n';document.form1.email.focus();}
	else if (!emailReegxp.test(document.form1.email.value)) { msg = msg+"Invalid Email Address\n"; document.form1.email.focus();document.form1.email.select();}
	else if (document.form1.c_email.value == "") { msg = 'Please fill in confirm email \n';document.form1.c_email.focus();}
	else if (document.form1.sec_code.value == "") { msg = "Please fill in verification code\n"; document.form1.sec_code.focus();}
	
	if (msg != "")
	{
		alert(msg);
		return false;
	}
	else if (document.form1.email.value != document.form1.c_email.value)
	{
		alert('Email addresses do not match');
		document.form1.c_email.focus();
		document.form1.c_email.select();
		return false;
		
	}	
	
}

function chk_download_form()
{
	var msg = '';
	var emailReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
	

	if (document.form1.email.value == ""){  msg = msg+ 'Please fill in email \n'; document.form1.email.focus();}
	else if (emailReegxp.test(document.form1.email.value) != true) { msg = msg + 'Invalid email address\n'; document.form1.email.focus();document.form1.email.select();}
	else if (document.form1.sec_code.value == "") { msg = "Please fill in verification code\n"; document.form1.sec_code.focus();}
	
	
	if (msg != "")
	{
		alert(msg);	
    	return false;
	}	
}

function chk_download_form2()
{
	var msg = '';
	var emailReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;

	if (document.form1.email.value == ""){  msg = msg+ 'Please fill in email \n'; document.form1.email.focus();}
	else if (emailReegxp.test(document.form1.email.value) != true) { msg = msg + 'Invalid email address \n'; document.form1.email.focus();document.form1.email.select();}
	else if (document.form1.fname.value == ""){  msg = msg+ 'Please fill in First Name \n'; document.form1.fname.focus();}
	else if (document.form1.lname.value == ""){  msg = msg+ 'Please fill in Last Name \n'; document.form1.lname.focus();}
	else if (document.form1.business.value == ""){  msg = msg+ 'Please fill in Business details \n'; document.form1.business.focus();}
	else if (document.form1.sec_code.value == "") { msg = "Please fill in verification code\n"; document.form1.sec_code.focus();}
	
	if (msg != "")
	{
		alert(msg);	
    	return false;
	}	
}