// JavaScript validations

//validations Registration Contact
function validateRegForm(form) {
if (form.FirstName.value == "") /* validations first name*/
{
   alert("Please enter your first name!")
   form.FirstName.focus()
   form.FirstName.select()
   return false
   }

if (form.LastName.value == "")  /* validations last name*/
{
   alert("Please enter your last name!")
   form.LastName.focus()
   form.LastName.select()
   return false
   }
   
if (form.title.value == "")  /* validations title*/
{
   alert("Please enter your title name!")
   form.title.focus()
   form.title.select()
   return false
   }   
   
if (form.exCompany.value == "")  /* validations company name*/
{
   alert("Please enter your company name!")
   form.exCompany.focus()
   form.exCompany.select()
   return false
   }   

if (form.exAddress.value == "")  /* validations address*/
{
   alert("Please enter your address name!")
   form.exAddress.focus()
   form.exAddress.select()
   return false
   }   
   
if (form.exCity.value == "")  /* validations city*/
{
   alert("Please enter your city name!")
   form.exCity.focus()
   form.exCity.select()
   return false
   }   

if (form.exState.options[form.exState.selectedIndex].text=="-----")  /* validations state*/
{
   alert("Please enter your state name!")
   form.exState.focus()
  // form.exState.select()
   return false
   }   

/* validations zip code   
if (form.exZip.value == "")
{
   alert("Please enter your zip code!")
   form.exZip.focus()
   form.exZip.select()
   return false
   }  
var theNumZip = form.exZip.value;
var theLength = theNumZip.length;
var goodZip = true;
if (theLength != 5 && theLength != 0) {
goodZip = false;
}
if (theLength == 5) {
for (var i = 0; i < 5; i++) {
var theChar = theNumZip.substring(i, i+1);
if (theChar < "0" || theChar > "9") {
goodZip = false;}
}
}
if (goodZip == false) {
alert("The zip code must be a 5 digit number !")
form.exZip.focus()
form.exZip.select()
return false
}

*/
if (form.exCountry.options[form.exCountry.selectedIndex].text== "-----")  /* validations country*/
{
   alert("Please select your country name!")
   form.exCountry.focus()
  // form.exCountry.select()
   return false
   }   


/* validations phone */   
if (form.Phone.value == "")
{
   alert("Please enter your phone number!")
   form.Phone.focus()
   form.Phone.select()
   return false
   }  
var theNumPh = form.Phone.value;
var theLengthPh = theNumPh.length;
var goodPh = true;
if (theLengthPh != 12 && theLengthPh != 0) {
goodPh = false;
}
if (theLengthPh == 12) {
for (var i = 0; i <12; i++) {
var theCharPh = theNumPh.substring(i, i+1);
if (theCharPh < "0" || theCharPh > "9") {
goodPh = false;}
}
}
if (goodPh == false) {
alert("The Phone must be a 12 digit number !Enter country and city code")
form.Phone.focus()
form.Phone.select()
return false
}


/* validations fax */     
if (form.exFax2.value == "")
{
   alert("Please enter your fax value!")
   form.exFax2.focus()
   form.exFax2.select()
   return false
   } 
var theNumFax = form.exFax2.value;
var theLengthFax = theNumFax.length;
var goodFax = true;
if (theLengthFax != 12 && theLengthFax!= 0) {
goodFax= false;
}
if (theLengthFax== 12) {
for (var i = 0; i <12; i++) {
var theCharFax= theNumFax.substring(i, i+1);
if (theCharFax< "0" || theCharFax> "9") {
goodFax= false;}
}
}
if (goodFax == false) {
alert("The Fax must be a 12 digit number !Enter country and city code")
form.exFax2.focus()
form.exFax2.select()
return false
}


/*validations email*/
  var str = form.email.value;
  var result;
  if (!(result = ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.email.focus()
	form.email.select()
	return false
  } 


/*validations exOutsideEmail*/
  var str1 = form.exOutsideEmail.value;
  var result1;
  if (!(result1 = ((str1 != "") && (str1.indexOf("@") != -1) && (str1.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exOutsideEmail.focus()
	form.exOutsideEmail.select()
	return false
  } 
}


//validations Bill Contact
function validateBillForm(form) {
if (form.FirstName2.value == "") /* validations first name*/
{
   alert("Please enter your first name!")
   form.FirstName2.focus()
   form.FirstName2.select()
   return false
   }

if (form.LastName2.value == "")  /* validations last name*/
{
   alert("Please enter your last name!")
   form.LastName2.focus()
   form.LastName2.select()
   return false
   }
   
if (form.title2.value == "")  /* validations title*/
{
   alert("Please enter your title name!")
   form.title2.focus()
   form.title2.select()
   return false
   }   
   
if (form.exCompany2.value == "")  /* validations company name*/
{
   alert("Please enter your company name!")
   form.exCompany2.focus()
   form.exCompany2.select()
   return false
   }   

if (form.exAddress2.value == "")  /* validations address*/
{
   alert("Please enter your address name!")
   form.exAddress2.focus()
   form.exAddress2.select()
   return false
   }   
   
if (form.exCity2.value == "")  /* validations city*/
{
   alert("Please enter your city name!")
   form.exCity2.focus()
   form.exCity2.select()
   return false
   }   

if (form.exState2.options[form.exState2.selectedIndex].text=="-----")  /* validations state*/
{
   alert("Please enter your state name!")
   form.exState2.focus()
  // form.exState.select()
   return false
   }   

/* validations zip code */    
if (form.exZip2.value == "")
{
   alert("Please enter your zip code!")
   form.exZip2.focus()
   form.exZip2.select()
   return false
   }  
var theNumZip = form.exZip2.value;
var theLength = theNumZip.length;
var goodZip = true;
if (theLength != 5 && theLength != 0) {
goodZip = false;
}
if (theLength == 5) {
for (var i = 0; i < 5; i++) {
var theChar = theNumZip.substring(i, i+1);
if (theChar < "0" || theChar > "9") {
goodZip = false;}
}
}
if (goodZip == false) {
alert("The zip code must be a 5 digit number !")
form.exZip2.focus()
form.exZip2.select()
return false
}


if (form.exCountry2.options[form.exCountry2.selectedIndex].text== "-----")  /* validations country*/
{
   alert("Please select your country name!")
   form.exCountry2.focus()
  // form.exCountry.select()
   return false
   }   


/* validations phone */   
if (form.Phone2.value == "")
{
   alert("Please enter your phone number!")
   form.Phone2.focus()
   form.Phone2.select()
   return false
   }  
var theNumPh = form.Phone2.value;
var theLengthPh = theNumPh.length;
var goodPh = true;
if (theLengthPh != 12 && theLengthPh != 0) {
goodPh = false;
}
if (theLengthPh == 12) {
for (var i = 0; i <12; i++) {
var theCharPh = theNumPh.substring(i, i+1);
if (theCharPh < "0" || theCharPh > "9") {
goodPh = false;}
}
}
if (goodPh == false) {
alert("The Phone must be a 12 digit number !Enter country and city code")
form.Phone2.focus()
form.Phone2.select()
return false
}


/* validations fax */     
if (form.exFax22.value == "")
{
   alert("Please enter your fax value!")
   form.exFax22.focus()
   form.exFax22.select()
   return false
   } 
var theNumFax = form.exFax22.value;
var theLengthFax = theNumFax.length;
var goodFax = true;
if (theLengthFax != 12 && theLengthFax!= 0) {
goodFax= false;
}
if (theLengthFax== 12) {
for (var i = 0; i <12; i++) {
var theCharFax= theNumFax.substring(i, i+1);
if (theCharFax< "0" || theCharFax> "9") {
goodFax= false;}
}
}
if (goodFax == false) {
alert("The Fax must be a 12 digit number !Enter country and city code")
form.exFax22.focus()
form.exFax22.select()
return false
}


/*validations email*/
  var str = form.email2.value;
  var result;
  if (!(result = ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.email2.focus()
	form.email2.select()
	return false
  } 


/*validations exOutsideEmail*/
  var str1 = form.exOutsideEmail2.value;
  var result1;
  if (!(result1 = ((str1 != "") && (str1.indexOf("@") != -1) && (str1.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exOutsideEmail2.focus()
	form.exOutsideEmail2.select()
	return false
  } 
}


//validations PrimaryTechnical Contact
function validatePrForm(form) {
if (form.FirstName.value == "") /* validations first name*/
{
   alert("Please enter your first name!")
   form.FirstName.focus()
   form.FirstName.select()
   return false
   }

if (form.LastName.value == "")  /* validations last name*/
{
   alert("Please enter your last name!")
   form.LastName.focus()
   form.LastName.select()
   return false
   }
   
if (form.title.value == "")  /* validations title*/
{
   alert("Please enter your title name!")
   form.title.focus()
   form.title.select()
   return false
   }   
   
if (form.exCompany.value == "")  /* validations company name*/
{
   alert("Please enter your company name!")
   form.exCompany.focus()
   form.exCompany.select()
   return false
   }   

if (form.exAddress.value == "")  /* validations address*/
{
   alert("Please enter your address name!")
   form.exAddress.focus()
   form.exAddress.select()
   return false
   }   
   
if (form.exCity.value == "")  /* validations city*/
{
   alert("Please enter your city name!")
   form.exCity.focus()
   form.exCity.select()
   return false
   }   

if (form.exState.options[form.exState.selectedIndex].text=="-----")  /* validations state*/
{
   alert("Please enter your state name!")
   form.exState.focus()
  // form.exState.select()
   return false
   }   

/* validations zip code */    
if (form.exZip.value == "")
{
   alert("Please enter your zip code!")
   form.exZip.focus()
   form.exZip.select()
   return false
   }  
var theNumZip = form.exZip.value;
var theLength = theNumZip.length;
var goodZip = true;
if (theLength != 5 && theLength != 0) {
goodZip = false;
}
if (theLength == 5) {
for (var i = 0; i < 5; i++) {
var theChar = theNumZip.substring(i, i+1);
if (theChar < "0" || theChar > "9") {
goodZip = false;}
}
}
if (goodZip == false) {
alert("The zip code must be a 5 digit number !")
form.exZip.focus()
form.exZip.select()
return false
}


if (form.exCountry.options[form.exCountry.selectedIndex].text== "-----")  /* validations country*/
{
   alert("Please select your country name!")
   form.exCountry.focus()
  // form.exCountry.select()
   return false
   }   


/* validations phone */   
if (form.exPhone.value == "")
{
   alert("Please enter your phone number!")
   form.exPhone.focus()
   form.exPhone.select()
   return false
   }  
var theNumPh = form.exPhone.value;
var theLengthPh = theNumPh.length;
var goodPh = true;
if (theLengthPh != 12 && theLengthPh != 0) {
goodPh = false;
}
if (theLengthPh == 12) {
for (var i = 0; i <12; i++) {
var theCharPh = theNumPh.substring(i, i+1);
if (theCharPh < "0" || theCharPh > "9") {
goodPh = false;}
}
}
if (goodPh == false) {
alert("The Phone must be a 12 digit number !Enter country and city code")
form.exPhone.focus()
form.exPhone.select()
return false
}


/* validations fax */     
if (form.exFax.value == "")
{
   alert("Please enter your fax value!")
   form.exFax.focus()
   form.exFax.select()
   return false
   } 
var theNumFax = form.exFax.value;
var theLengthFax = theNumFax.length;
var goodFax = true;
if (theLengthFax != 12 && theLengthFax!= 0) {
goodFax= false;
}
if (theLengthFax== 12) {
for (var i = 0; i <12; i++) {
var theCharFax= theNumFax.substring(i, i+1);
if (theCharFax< "0" || theCharFax> "9") {
goodFax= false;}
}
}
if (goodFax == false) {
alert("The Fax must be a 12 digit number !Enter country and city code")
form.exFax.focus()
form.exFax.select()
return false
}


/*validations email*/
  var str = form.exemail.value;
  var result;
  if (!(result = ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exemail.focus()
	form.exemail.select()
	return false
  } 


/*validations exOutsideEmail*/
  var str1 = form.exOutsideEmail.value;
  var result1;
  if (!(result1 = ((str1 != "") && (str1.indexOf("@") != -1) && (str1.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exOutsideEmail.focus()
	form.exOutsideEmail.select()
	return false
  } 
}


//validations SecondaryTechnical Contact
function validateSecForm(form) {
if (form.FirstName.value == "") /* validations first name*/
{
   alert("Please enter your first name!")
   form.FirstName.focus()
   form.FirstName.select()
   return false
   }

if (form.LastName.value == "")  /* validations last name*/
{
   alert("Please enter your last name!")
   form.LastName.focus()
   form.LastName.select()
   return false
   }
   
if (form.title.value == "")  /* validations title*/
{
   alert("Please enter your title name!")
   form.title.focus()
   form.title.select()
   return false
   }   
   
if (form.exCompany.value == "")  /* validations company name*/
{
   alert("Please enter your company name!")
   form.exCompany.focus()
   form.exCompany.select()
   return false
   }   

if (form.exAddress.value == "")  /* validations address*/
{
   alert("Please enter your address name!")
   form.exAddress.focus()
   form.exAddress.select()
   return false
   }   
   
if (form.exCity.value == "")  /* validations city*/
{
   alert("Please enter your city name!")
   form.exCity.focus()
   form.exCity.select()
   return false
   }   

if (form.exState.options[form.exState.selectedIndex].text=="-----")  /* validations state*/
{
   alert("Please enter your state name!")
   form.exState.focus()
  // form.exState.select()
   return false
   }   

/* validations zip code */    
if (form.exZip.value == "")
{
   alert("Please enter your zip code!")
   form.exZip.focus()
   form.exZip.select()
   return false
   }  
var theNumZip = form.exZip.value;
var theLength = theNumZip.length;
var goodZip = true;
if (theLength != 5 && theLength != 0) {
goodZip = false;
}
if (theLength == 5) {
for (var i = 0; i < 5; i++) {
var theChar = theNumZip.substring(i, i+1);
if (theChar < "0" || theChar > "9") {
goodZip = false;}
}
}
if (goodZip == false) {
alert("The zip code must be a 5 digit number !")
form.exZip.focus()
form.exZip.select()
return false
}


if (form.exCountry.options[form.exCountry.selectedIndex].text== "-----")  /* validations country*/
{
   alert("Please select your country name!")
   form.exCountry.focus()
  // form.exCountry.select()
   return false
   }   


/* validations phone */   
if (form.exPhone.value == "")
{
   alert("Please enter your phone number!")
   form.exPhone.focus()
   form.exPhone.select()
   return false
   }  
var theNumPh = form.exPhone.value;
var theLengthPh = theNumPh.length;
var goodPh = true;
if (theLengthPh != 12 && theLengthPh != 0) {
goodPh = false;
}
if (theLengthPh == 12) {
for (var i = 0; i <12; i++) {
var theCharPh = theNumPh.substring(i, i+1);
if (theCharPh < "0" || theCharPh > "9") {
goodPh = false;}
}
}
if (goodPh == false) {
alert("The Phone must be a 12 digit number !Enter country and city code")
form.exPhone.focus()
form.exPhone.select()
return false
}


/* validations fax */     
if (form.exFax2.value == "")
{
   alert("Please enter your fax value!")
   form.exFax2.focus()
   form.exFax2.select()
   return false
   } 
var theNumFax = form.exFax2.value;
var theLengthFax = theNumFax.length;
var goodFax = true;
if (theLengthFax != 12 && theLengthFax!= 0) {
goodFax= false;
}
if (theLengthFax== 12) {
for (var i = 0; i <12; i++) {
var theCharFax= theNumFax.substring(i, i+1);
if (theCharFax< "0" || theCharFax> "9") {
goodFax= false;}
}
}
if (goodFax == false) {
alert("The Fax must be a 12 digit number !Enter country and city code")
form.exFax2.focus()
form.exFax2.select()
return false
}


/*validations email*/
  var str = form.exemail.value;
  var result;
  if (!(result = ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exemail.focus()
	form.exemail.select()
	return false
  } 


/*validations exOutsideEmail*/
  var str1 = form.exOutsideEmail.value;
  var result1;
  if (!(result1 = ((str1 != "") && (str1.indexOf("@") != -1) && (str1.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exOutsideEmail.focus()
	form.exOutsideEmail.select()
	return false
  } 
}

//validations SLA Contact
function validateSLAForm(form) {
if (form.FirstName.value == "") /* validations first name*/
{
   alert("Please enter your first name!")
   form.FirstName.focus()
   form.FirstName.select()
   return false
   }

if (form.LastName.value == "")  /* validations last name*/
{
   alert("Please enter your last name!")
   form.LastName.focus()
   form.LastName.select()
   return false
   }
   
if (form.title.value == "")  /* validations title*/
{
   alert("Please enter your title name!")
   form.title.focus()
   form.title.select()
   return false
   }   
   
if (form.exCompany.value == "")  /* validations company name*/
{
   alert("Please enter your company name!")
   form.exCompany.focus()
   form.exCompany.select()
   return false
   }   

if (form.exAddress.value == "")  /* validations address*/
{
   alert("Please enter your address name!")
   form.exAddress.focus()
   form.exAddress.select()
   return false
   }   
   
if (form.exCity.value == "")  /* validations city*/
{
   alert("Please enter your city name!")
   form.exCity.focus()
   form.exCity.select()
   return false
   }   

if (form.exState.options[form.exState.selectedIndex].text=="-----")  /* validations state*/
{
   alert("Please enter your state name!")
   form.exState.focus()
  // form.exState.select()
   return false
   }   

/* validations zip code */    
if (form.exZip.value == "")
{
   alert("Please enter your zip code!")
   form.exZip.focus()
   form.exZip.select()
   return false
   }  
var theNumZip = form.exZip.value;
var theLength = theNumZip.length;
var goodZip = true;
if (theLength != 5 && theLength != 0) {
goodZip = false;
}
if (theLength == 5) {
for (var i = 0; i < 5; i++) {
var theChar = theNumZip.substring(i, i+1);
if (theChar < "0" || theChar > "9") {
goodZip = false;}
}
}
if (goodZip == false) {
alert("The zip code must be a 5 digit number !")
form.exZip.focus()
form.exZip.select()
return false
}


if (form.exCountry.options[form.exCountry.selectedIndex].text== "-----")  /* validations country*/
{
   alert("Please select your country name!")
   form.exCountry.focus()
  // form.exCountry.select()
   return false
   }   


/* validations phone */   
if (form.exPhone.value == "")
{
   alert("Please enter your phone number!")
   form.exPhone.focus()
   form.exPhone.select()
   return false
   }  
var theNumPh = form.exPhone.value;
var theLengthPh = theNumPh.length;
var goodPh = true;
if (theLengthPh != 12 && theLengthPh != 0) {
goodPh = false;
}
if (theLengthPh == 12) {
for (var i = 0; i <12; i++) {
var theCharPh = theNumPh.substring(i, i+1);
if (theCharPh < "0" || theCharPh > "9") {
goodPh = false;}
}
}
if (goodPh == false) {
alert("The Phone must be a 12 digit number !Enter country and city code")
form.exPhone.focus()
form.exPhone.select()
return false
}


/* validations fax */     
if (form.exFax2.value == "")
{
   alert("Please enter your fax value!")
   form.exFax2.focus()
   form.exFax2.select()
   return false
   } 
var theNumFax = form.exFax2.value;
var theLengthFax = theNumFax.length;
var goodFax = true;
if (theLengthFax != 12 && theLengthFax!= 0) {
goodFax= false;
}
if (theLengthFax== 12) {
for (var i = 0; i <12; i++) {
var theCharFax= theNumFax.substring(i, i+1);
if (theCharFax< "0" || theCharFax> "9") {
goodFax= false;}
}
}
if (goodFax == false) {
alert("The Fax must be a 12 digit number !Enter country and city code")
form.exFax2.focus()
form.exFax2.select()
return false
}


/*validations email*/
  var str = form.exemail.value;
  var result;
  if (!(result = ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exemail.focus()
	form.exemail.select()
	return false
  } 


/*validations exOutsideEmail*/
  var str1 = form.exOutsideEmail.value;
  var result1;
  if (!(result1 = ((str1 != "") && (str1.indexOf("@") != -1) && (str1.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exOutsideEmail.focus()
	form.exOutsideEmail.select()
	return false
  } 
}


//validations Admin Contact
function validateAdminForm(form) {
if (form.FirstName.value == "") /* validations first name*/
{
   alert("Please enter your first name!")
   form.FirstName.focus()
   form.FirstName.select()
   return false
   }

if (form.LastName.value == "")  /* validations last name*/
{
   alert("Please enter your last name!")
   form.LastName.focus()
   form.LastName.select()
   return false
   }
   
if (form.title.value == "")  /* validations title*/
{
   alert("Please enter your title name!")
   form.title.focus()
   form.title.select()
   return false
   }   
   
if (form.exCompany.value == "")  /* validations company name*/
{
   alert("Please enter your company name!")
   form.exCompany.focus()
   form.exCompany.select()
   return false
   }   

if (form.exAddress.value == "")  /* validations address*/
{
   alert("Please enter your address name!")
   form.exAddress.focus()
   form.exAddress.select()
   return false
   }   
   
if (form.exCity.value == "")  /* validations city*/
{
   alert("Please enter your city name!")
   form.exCity.focus()
   form.exCity.select()
   return false
   }   

if (form.exState.options[form.exState.selectedIndex].text=="-----")  /* validations state*/
{
   alert("Please enter your state name!")
   form.exState.focus()
  // form.exState.select()
   return false
   }   

/* validations zip code */    
if (form.exZip.value == "")
{
   alert("Please enter your zip code!")
   form.exZip.focus()
   form.exZip.select()
   return false
   }  
var theNumZip = form.exZip.value;
var theLength = theNumZip.length;
var goodZip = true;
if (theLength != 5 && theLength != 0) {
goodZip = false;
}
if (theLength == 5) {
for (var i = 0; i < 5; i++) {
var theChar = theNumZip.substring(i, i+1);
if (theChar < "0" || theChar > "9") {
goodZip = false;}
}
}
if (goodZip == false) {
alert("The zip code must be a 5 digit number !")
form.exZip.focus()
form.exZip.select()
return false
}


if (form.exCountry.options[form.exCountry.selectedIndex].text== "-----")  /* validations country*/
{
   alert("Please select your country name!")
   form.exCountry.focus()
  // form.exCountry.select()
   return false
   }   


/* validations phone */   
if (form.exPhone.value == "")
{
   alert("Please enter your phone number!")
   form.exPhone.focus()
   form.exPhone.select()
   return false
   }  
var theNumPh = form.exPhone.value;
var theLengthPh = theNumPh.length;
var goodPh = true;
if (theLengthPh != 12 && theLengthPh != 0) {
goodPh = false;
}
if (theLengthPh == 12) {
for (var i = 0; i <12; i++) {
var theCharPh = theNumPh.substring(i, i+1);
if (theCharPh < "0" || theCharPh > "9") {
goodPh = false;}
}
}
if (goodPh == false) {
alert("The Phone must be a 12 digit number !Enter country and city code")
form.exPhone.focus()
form.exPhone.select()
return false
}


/* validations fax */     
if (form.exFax2.value == "")
{
   alert("Please enter your fax value!")
   form.exFax2.focus()
   form.exFax2.select()
   return false
   } 
var theNumFax = form.exFax2.value;
var theLengthFax = theNumFax.length;
var goodFax = true;
if (theLengthFax != 12 && theLengthFax!= 0) {
goodFax= false;
}
if (theLengthFax== 12) {
for (var i = 0; i <12; i++) {
var theCharFax= theNumFax.substring(i, i+1);
if (theCharFax< "0" || theCharFax> "9") {
goodFax= false;}
}
}
if (goodFax == false) {
alert("The Fax must be a 12 digit number !Enter country and city code")
form.exFax2.focus()
form.exFax2.select()
return false
}


/*validations email*/
  var str = form.exemail.value;
  var result;
  if (!(result = ((str != "") && (str.indexOf("@") != -1) && (str.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exemail.focus()
	form.exemail.select()
	return false
  } 


/*validations exOutsideEmail*/
  var str1 = form.exOutsideEmail.value;
  var result1;
  if (!(result1 = ((str1 != "") && (str1.indexOf("@") != -1) && (str1.indexOf(".") != -1)))) {
    alert("The value must be an email address." );
    form.exOutsideEmail.focus()
	form.exOutsideEmail.select()
	return false
  } 

/* validations username */   
if (form.UserName.value == "")
{
   alert("Please enter your user name!")
   form.UserName.focus()
   form.UserName.select()
   return false
   }  
   
  /* validations password */   
if (form.Password.value == "")
{
   alert("Please enter your password!")
   form.Password.focus()
   form.Password.select()
   return false
   }  
}



//validations payment Mode Contact
function validatePayModeForm(form) {
if (form.exCCType.options[form.exCCType.selectedIndex].text=="-----")  /* validations card type*/
{
   alert("Please enter your credit card type!")
   form.exCCType.focus()
  // form.exCCType.select()
   return false
   }   

if (form.exCCName.value == "") /* validations exCCName*/
{
   alert("Please enter your Credit Card Name!")
   form.exCCName.focus()
   form.exCCName.select()
   return false
   }

if (form.exCCNumber.value == "")  /* validations exCCNumber*/
{
   alert("Please enter your credit card number!")
   form.exCCNumber.focus()
   form.exCCNumber.select()
   return false
   }
if (form.exMonth.options[form.exMonth.selectedIndex].text=="-----")  /* validations exMonth*/
{
   alert("Please enter month!")
   form.exMonth.focus()
  // form.exCCType.select()
   return false
   } 


if (form.exYear.options[form.exYear.selectedIndex].text=="-----")  /* validations exYear*/
{
   alert("Please enter year!")
   form.exYear.focus()
  // form.exCCType.select()
   return false
   } 


if (form.exCVV2.value=="")  /* validations exCVV2*/
{
   alert("Please enter CVV2 number!")
   form.exCVV2.focus()
   form.exCCType.select()
   return false
   } 

if (form.exCCName22.value == "")  /* validations exCCName22*/
{
   alert("Please enter your cheque number!")
   form.exCCName22.focus()
   form.exCCName22.select()
   return false
   }

if (form.exCCName2.value == "")  /* validations exCCName2*/
{
   alert("Please enter your Issuing Bank name!")
   form.exCCName2.focus()
   form.exCCName2.select()
   return false
   }

if (form.exCCNumber2.value == "")  /* validations exCCNumber2*/
{
   alert("Please enter your cheque date!")
   form.exCCNumber2.focus()
   form.exCCNumber2.select()
   return false
   }

}
