// JavaScript Document

function onfoc(input1, comText){
	//var input1 = document.getElementById('txtName1');
	if(input1.value==comText){
		input1.value="";
	}
}
function onblu(input1, comText){
	//var input1 = document.getElementById('txtName1');
	if(input1.value==""){
		input1.value=comText;
	}
}
function checkNull(input1, txt1, input2, txt2)
{
	var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	if ( input1.value==txt1 || input2.value==txt2 || (!filter.test(email.value)))
	{
		alert("You didn't input anything in the email field or invalid email address, Please recheck and try again.");
		return false;
	}
	return true;
}
function checkvali(input1, input2, input3)
{
	var filter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	if ( input1.value!=input2.value || input3.value=="")
	{
		alert("Password and Confirm Password must match, Please recheck and try again.");
		return false;
	}
	else if ( input3.value=="")
	{
		alert("Your E-mail is required, Please recheck and try again.");
		return false;
	}
	else if ((!filter.test(input3.value)))
	{
		alert("Your E-mail is not e-mail format, Please recheck and try again.");
		return false;
	}
	return true;
}
