function submitting(){
   start=document.form.email.value.search("@");
   string=document.form.email.value;
   a=string.length;
   if (document.form.fname.value==""){
		alert ("Please enter your first name!");
		document.form.fname.focus();
   }
   else if (check_sub(document.form.fname.value))
   {
		alert ("You can not use that First Name for sign-up. Please re-enter!");
      document.form.fname.value="";
		document.form.fname.focus();
	}
   else if (document.form.lname.value==""){
		alert ("Please enter your last name!");
		document.form.lname.focus();
	}
   else if (check_sub(document.form.lname.value))
   {
		alert ("You can not use that Last Name for sign-up. Please re-enter!");
      document.form.lname.value="";
		document.form.lname.focus();
	}
   else if (document.form.email.value==""){
      alert ("Please enter your email!");
      document.form.email.focus();
   }
   else if (start==-1 || start == a-1){
      alert ("Entered email is not valid. Please re-enter!");
      document.form.email.focus();
   }
   else if (document.form.designation.value==""){
      alert ("Please enter your designation!");
      document.form.designation.focus();
   }
   else if (document.form.company.value==""){
      alert ("Please enter your company name!");
      document.form.company.focus();
   }
   else if (document.form.city.value==""){
      alert ("Please enter your city!");
      document.form.city.focus();
   }
   else if (document.form.province.value==""){
      alert ("Please enter your province!");
      document.form.province.focus();
   }
   else if (document.form.postal.value==""){
      alert ("Please enter your postal code!");
      document.form.postal.focus();
   }
   else if (document.form.country.value==""){
      alert ("Please enter your country!");
      document.form.country.focus();
   }
   else if (document.form.bphone.value==""){
      alert ("Please enter your business phone!");
      document.form.bphone.focus();
   }
   else{
      document.form.triggerFlag.value=5;
      document.form.submit();
   }
}              

function check_sub(someString){
   myString = new String(someString);
   flag = myString.indexOf("moneymaker4agents")!=-1 ? true : false;
   if (!flag){
      flag = myString.match(/^\d+$/)!=null ? true : false;
   }
   return flag;
}
  