function okk()
{
String.prototype.left = function(num,mode){
        if(!/\d+/.test(num))return(this);
        var str = this.substr(0,num);
        if(!mode) return str;
        var n = str.Tlength() - str.length;
        num = num - parseInt(n/2);
        return this.substr(0,num);
    }


	  
	  if (document.login.fname.value.length ==0 ) {
      alert("Please input the first name!");
	  document.login.fname.focus();
	  return false;
	}
	if (document.login.lname.value.length ==0 ) {
      alert("Please input the last name!");
	  document.login.lname.focus();
	  return false;
	}
	if (document.login.address.value.length ==0 ) {
      alert("Please input the address!");
	  document.login.address.focus();
	  return false;
	}
	if (document.login.city.value.length ==0 ) {
      alert("Please input the city!");
	  document.login.city.focus();
	  return false;
	}
	
	if (document.login.postalcode.value.length ==0 ) {
      alert("Please input the postal code!");
	  document.login.postalcode.focus();
	  return false;
	}
	if (document.login.country.value.length ==0 ) {
      alert("Please input the country!");
	  document.login.country.focus();
	  return false;
	}
	if (document.login.hphone.value.length ==0 ) {
      alert("Please input the home phone!");
	  document.login.hphone.focus();
	  return false;
	}
	if (document.login.dphone.value.length ==0 ) {
      alert("Please input the daytime phone!");
	  document.login.dphone.focus();
	  return false;
	}
		if (document.login.email.value.length ==0 ) {
      alert("Please input the email!");
	  document.login.email.focus();
	  return false;
	}
	 if (document.login.email.value=="" || document.login.email.value.indexOf("@") == -1 || document.login.email.value.indexOf(".") == -1){
	alert("Format of Email is not correct!");
    document.login.email.focus(); 
	return false;
	
	}
		
	document.login.submit();
}