
function verifysignup(){ 
	//if (document.frmNewUser){
	
		//with(document.frmNewUser){
		with(document.forms[0]){
		
			var OriginalPassword=Password.value;
			var VerifyPassword=VPassword.value;
			
			//--Gender
			if (IsEmptyList(Gndr)){alert('Additional information is required.\n\rPlease select your Gender.'); return false;}
			//-- Logon
			if(isEmpty(Logon)){alert('Additional information is required.\n\rPlease Select your User Name. It may be 4-20 chracters no special symbols or spaces.');Logon.focus();return false;}
			if(Logon.value.length > 20){alert('Your User Name requires 4 - 20 characters with no special symbols or spaces.\n\r You have entered ' + Logon.value.length + ' characters.');Logon.focus();return false;}
			if(Logon.value.length < 4){alert('Your User Name requires 4 - 20 characters with no special symbols or spaces.');Logon.focus();return false;}
			if(!isValidString(Logon.value)){alert('Invalid User Name.\n\rUser Name can not have special symbols.');Logon.focus();return false;}
			if (Logon.value.indexOf(' ')>-1){alert('Invalid User Name.\n\rUser Name can not have special symbols or spaces.');Logon.focus();return false;}
			if (Logon.value.lastIndexOf("'") != -1){alert('Invalid User Name.\n\rUser Name can not have special symbols.');Logon.focus();return false;}
			//-- Password
			if(isEmpty(Password)){alert('Information is required, please try again.\n\rPlease choose your Password, 4-20 chracters no special symbols or spaces.');Password.focus();return false;}
			if(Password.value.length > 20){alert('Password should be between 4 and 20 characters no special symbols or spaces.\n\r You have entered ' + Password.value.length + ' characters.');Password.focus();return false;}
			if(Password.value.length < 4){alert('Password should be between 4 and 20 characters no special symbols or spaces.');Password.focus();return false;}
			if(!isValidString(Password.value)){alert('You have entered an Invalid Password.\n\rPasswords cannot include symbols.'); Password.focus();return false;}
			if (Password.value.lastIndexOf("'") != -1){alert('You have entered an Invalid Password.\n\rPasswords cannot include symbols.'); Password.focus();return false;}
			//if (OriginalPassword.toLowerCase() != VerifyPassword.toLowerCase()){alert('Your Passwords do not match.\n\rPlease re-enter your Password. Please do not use Copy and Paste.');VPassword.focus();return false;}
			
			
			//-- Email
			if(isEmpty(Email)){alert('Information is Required.\n\rPlease enter your email address.');Email.focus();return false;}
			if(!isValidEmail(Email.value)){alert('Invalid email address.\n\rPlease re-enter your email address.');Email.focus();return false;}
			//-- Zip code
			if((isEmpty(Zip)) && (CountryID.options[CountryID.selectedIndex].value == 0)){alert('If you reside in the US or Canada, Please enter your zip code.');Zip.focus();return false;}
			//Source
			if (SourceID.type != 'hidden'){
				if (SourceID.options[SourceID.selectedIndex].value == 0){alert('Please select where you heard about Perfectmatch.'); SourceID.focus();return false;}
			}
			//Agreement
			if(!TC.checked){alert('You must agree with Terms of Use before proceeding. Please check the box.');TC.focus();return false;}
			
			VEmail.value = Email.value;
			VPassword.value = Password.value; 
			}
		//}
	return true;
	//}
	//else {return false;}
}
function dis(){
    with(document.forms[0]){
	    if (Zip.value.length > 0){
		     CountryID.selectedIndex = 0;
		     CountryID.disabled = true;
		     }
	    else {CountryID.disabled = false;}
	}
}

 
 function getradio(obj){
	if(obj){
	var arrRd = obj;
	var v = "unspecified";
	for(i=0;i<arrRd.length;i++){
		if (arrRd[i].checked){v=arrRd[i].value; break;}
	}}
	return v;
}
