function verfy_create_account()
{
	if(Trim(document.frm.txtEmail.value)=="")
	{
		alert("Please enter Email !");
		document.frm.txtEmail.focus();
		return false;
	}
	else if(!isEmail(document.frm.txtEmail.value,1,0) || (document.frm.txtEmail.value.length==0)){
		alert("Invalid Email Address !");
		document.frm.txtEmail.focus();		
		return false;
	}
	if(Trim(document.frm.txtVerifyEmail.value)=="")
	{
		alert("Please enter verify email!");
		document.frm.txtVerifyEmail.focus();
		return false;
	}
	else if(!isEmail(document.frm.txtVerifyEmail.value,1,0) || (document.frm.txtVerifyEmail.value.length==0)){
		alert("Invalid verify Email Address !");
		document.frm.txtVerifyEmail.focus();		
		return false;
	}
	if (document.frm.txtEmail.value != document.frm.txtVerifyEmail.value)
	{
		alert("Email and Verify Email do not match !");			
		document.frm.txtVerifyEmail.select();
		document.frm.txtVerifyEmail.focus();
		return false;
	}
	if (Trim(document.frm.txtPassword.value) == "") 
	{
		alert ("Enter Your Password !");
		document.frm.txtPassword.focus();
		return false;
	}
	if (Trim(document.frm.txtPassword.value) != "") 
	{
		if(document.frm.txtPassword.value.length < 5)
		{
			alert ("Password length must be greater than 4 characters!");
			document.frm.txtPassword.focus();
			return false;
		}
	}
	if (Trim(document.frm.txtRetypepass.value) == "") 
	{
		alert ("Please enter confirmation password!");
		document.frm.txtRetypepass.focus();
		return false;
	}
	if (document.frm.txtPassword.value != document.frm.txtRetypepass.value)
	{
		alert("Password and Confirmation Password do not match !");			
		document.frm.txtRetypepass.select();
		document.frm.txtRetypepass.focus();
		return false;
	}
	if(Trim(document.frm.txtFirst.value)=="")
	{
		alert("Please enter First Name !");
		document.frm.txtFirst.focus();
		return false;
	}
	if(Trim(document.frm.txtLast.value)=="")
	{
		alert("Please enter Last Name !");
		document.frm.txtLast.focus();
		return false;
	}
	
	if(Trim(document.frm.txtStreet.value)=="")
	{
		alert("Please Enter Your Street Address !");
		document.frm.txtStreet.focus();
		return false;
		
	}
	if(Trim(document.frm.txtZip.value)=="")
	{
		alert("Please Enter Zip Code !");
		document.frm.txtZip.focus();
		return false;
	}
	if(Trim(document.frm.txtZip.value)!="")
	{
		if(isNaN(Trim(document.frm.txtZip.value))==true)
		{
			alert("Please Enter Numbers Only !");
			document.frm.txtZip.focus();
			return false;
		}
	}
	if(Trim(document.frm.txtPhone.value)!="")
	{
		if(isNaN(Trim(document.frm.txtPhone.value))==true)
		{
			alert("Please Enter Numbers Only !");
			document.frm.txtPhone.focus();
			return false;
		}
	}
	if(Trim(document.frm.txtCode.value)=="")
	{
		alert("Please Enter Image Code !");
		document.frm.txtCode.focus();
		return false;
	}
	if(!document.frm.chkterms.checked)
	{
		alert("You must agree with our terms and conditions to create an account.");
		return false;	
	}
	return true;	
}

function verfy_update_account()
{
	
	
	if(Trim(document.frm.txtFirst.value)=="")
	{
		alert("Please enter First Name !");
		document.frm.txtFirst.focus();
		return false;
	}
	if(Trim(document.frm.txtLast.value)=="")
	{
		alert("Please enter Last Name !");
		document.frm.txtLast.focus();
		return false;
	}
	if(Trim(document.frm.txtEmail.value)=="")
	{
		alert("Please enter Email !");
		document.frm.txtEmail.focus();
		return false;
	}
	else if(!isEmail(document.frm.txtEmail.value,1,0) || (document.frm.txtEmail.value.length==0)){
		alert("Invalid Email Address !");
		document.frm.txtEmail.focus();		
		return false;
	}
	if(Trim(document.frm.txtStreet.value)=="")
	{
		alert("Please Enter Your Street Address !");
		document.frm.txtStreet.focus();
		return false;
		
	}
	if(Trim(document.frm.txtZip.value)=="")
	{
		alert("Please Enter Zip Code !");
		document.frm.txtZip.focus();
		return false;
	}
	if(Trim(document.frm.txtZip.value)!="")
	{
		if(isNaN(Trim(document.frm.txtZip.value))==true)
		{
			alert("Please Enter Numbers Only !");
			document.frm.txtZip.focus();
			return false;
		}
	}
	if(Trim(document.frm.txtPhone.value)!="")
	{
		if(isNaN(Trim(document.frm.txtPhone.value))==true)
		{
			alert("Please Enter Numbers Only !");
			document.frm.txtPhone.focus();
			return false;
		}
	}
	
	return true;	
}


function change_password()
	{
	
		
		if (Trim(document.frm.txt_new_password.value) != "") 
	{
		if(document.frm.txt_new_password.value.length < 5)
		{
			alert ("Password length must be greater then 4 characters!");
			document.frm.txt_new_password.focus();
			return false;
		}
	}
		
		if (document.frm.txt_new_password.value != document.frm.txt_confirm_password.value)
		{
			alert("New Password and Confirmation Password do not match !");			
			document.frm.txt_confirm_password.select();
			document.frm.txt_confirm_password.focus();
			return false;
		}
		
		return true;
	}
