<!--

function CheckCompany(){	

		 var varname,AlphaName

		 varname = document.form1.agency_name.value		

		 AlphaName = ""								  							  

		 for (k = 0; k < varname.length; k++) {

			 ch = varname.substring(k, k+1);				

			 if ((ch >= "0" && ch <= "9" ) ||(ch >= "a" && ch <= "z") || (ch >= "A" && ch <= "Z" ) || (ch = " ") ) {

			   AlphaName+= ch;

			}

		}								  	

								  							  

		 if (varname == ""){

		      alert("Company Name is Required" )

		      return;

		}else if (AlphaName != varname){

		      alert(" Company is an ALPHANUMERIC field only. Special Characters like QUOTES,COMMA,APOSTROPHEE etc. are NOT ALLOWED" )

		      return;									

		}					

	}

	

function script1() {

		 x=0

		 if (document.form1.agency_user.value == "") {

			 alert("You must enter a user name.")

			 return;

		    }

		

		 if( (document.form1.agency_user.value.search(/\\S\\s/) != -1) || (document.form1.agency_user.value.search(/\\s\\S/) != -1) ) {

			 alert("Please no whitespace in login name.")

			 return;

		}

		

		 TempLogin = document.form1.agency_user.value

		 index = TempLogin.indexOf("'")

		 if  (index != -1 ) {

			 alert("Please no punctuation marks in Login Name.")

			 return;		

		}

		 if (document.form1.agency_pwd.value == "") {

			 alert("You must enter a password.")

			 return;

		}

		

		 TempPassword = document.form1.agency_pwd.value

		 index = TempPassword.indexOf("'")

		 if  (index != -1 ) {

			 alert("Please no punctuation marks in Password.")

			 return;		

		}

		

		 if( (document.form1.agency_pwd.value.search(/\\S\\s/) != -1) || (document.form1.agency_pwd.value.search(/\\s\\S/) != -1) ) {

			 alert("Please no whitespace in password.")

			 return;

		}

		 if ( document.form1.agency_pwd.value != document.form1.agency_pwd1.value) {

			 alert("You must enter the same password twice.")

			 return;

		}

		

		 if ( document.form1.agency_pwd.length <5 ) {

			 alert("Password must be at least 5 letters.")

			 return;

		}

		

		 if (document.form1.agency_agent.value == "") {

			 alert("You must enter Agent Name")

			 return;

		}

		

		 if (document.form1.agency_name.value == "") {

			 alert("You must enter the travel agency name.")

			 return;

		}

		

		 if (document.form1.agency_address.value == "") {

			 alert("You must enter the Street Address.")

			 return;

		}														

		 if (document.form1.agency_city.value == "") {

			 alert("You must enter the city.")

			 return;

		}														

																		

		 if (document.form1.agency_zip_code.value == "") {

			 alert("You must enter the zip.")

			 return;

		}										

		 if (document.form1.agency_country.value == "") {

			 alert("You must enter the country.")

			 return;

		}

		 if (document.form1.agency_tel.value == "") {

			 alert("You must enter the phone number.")

			 return;

		}

		 if (document.form1.agency_fax.value == "") {

			 alert("You must enter the fax number.")

			 return;

		}													

		 if (document.form1.agency_email.value == "") {

			 alert("You must enter the email address.")

			 return;

		}

                if(document.form1.agency_email.value.length>0&&(document.form1.agency_email.value.indexOf("@",0)==-1||document.form1.agency_email.value.indexOf(".",0)==-1))
		{
                 		alert("Please enter a valid E-mail address");
                                document.form1.agency_email.focus();
		 		return;
		}

		 if ((document.form1.agency_iata_arc.value == "") && (document.form1.agency_clia.value == "")) {

			 alert("You must enter a ARC or IATA or CLIA number.")

			 return;

		}

																		

		 document.form1.submit()

	}

//-->	
