/*function check_country(country_id)
{
	if(country_id!=840)
	{
	document.getElementById('ziptext').style.visibility="hidden";	
	document.getElementById('zipcode').style.visibility="hidden";	
	}
	else
	{
	document.getElementById('ziptext').style.visibility="visible";	
	document.getElementById('zipcode').style.visibility="visible";	
	}
	
	if(country_id==840)
	{
	frmvalidator.addValidation("userzip","req","Zip Code can not be empty");
    frmvalidator.addValidation("userzip","maxlen=7","Invalid Zip code");
    frmvalidator.addValidation("userzip","numeric","Zip Code :Only Digits allowed");
	}
}*/

function compare_pwd()
{
	upwd=document.getElementById('id_userpassword').value;
	rupwd=document.getElementById('id_confirmuserpassword').value;
	
	if(upwd!="" && rupwd!="" && upwd!=rupwd)
	{
		alert("Password do not match");
		return false;
	}
	else
	{
		return true;
	}
	
}

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }

