function gopage(Obj)
{
	indx = (Obj[Obj.selectedIndex].value);
	window.location.href=indx;
}

function Trim(nStr){return nStr.replace(/(^\s*)|(\s*$)/g, "");}
function fnClear()
{
	document.frmNewsletter.Fname.value="";
	document.frmNewsletter.Fname.focus(); 
}
function fnClear1()
{
	document.frmNewsletter.Email.value="";
	document.frmNewsletter.Email.focus(); 
}
 function validate1()
 {
 	if(isNull(document.curform.txtfname,"First name")){ return false };
	
	if(isNull(document.curform.txtcompany,"Company")){ return false };
	if(isNull(document.curform.txtwebsite,"Website"))return false;
	if(isNull(document.curform.txtmail,"Email"))return false;
	if(document.curform.txtmail.value!="")
	{
		if(notEmail(document.curform.txtmail,"Email address"))return false;
	}
	if(isNull(document.curform.text,"Enter the txt"))return false;
//	document.thisform.action="join_mail1.php?mode=save";
//	document.thisform.submit();
}

function ValidateQuickSubmit(FormID){
	var isValid = true;
	
	if (isNull(document.getElementById("QSFirstName"),"Name")){isValid= false;}
  //if (isNull(document.getElementById("QSCompanyName"),"CompanyName")){isValid=false;}
  //if (isNull(document.getElementById("QSWebsite"),"Website")){isValid=false;}
	if (isNull(document.getElementById("QSEmail"),"EMail")){isValid=false;}
	if (notEmail(document.getElementById("QSEmail"),"EMail")){isValid=false;}
	if (isNull(document.getElementById("QSCountry"),"Country")){isValid=false;}
	if (isNullCbo(document.getElementById("QSServices"),"Services")){isValid=false;}
	if (isNull(document.getElementById("QSEnquiryComments"),"Comments")){isValid=false;}
	if (isNull(document.getElementById("QSCaptchaText"),"Comments")){isValid=false;}
	if((document.getElementById("QSFirstName").value=="")||(document.getElementById("QSEmail").value=="")||(document.getElementById("QSCountry").value=="")||(document.getElementById("QSServices").value=="")||(document.getElementById("QSEnquiryComments").value=="")||(document.getElementById("QSCaptchaText").value==""))
	  document.getElementById("FORMERROR").innerHTML = "Please fill in the above fields marked in red";
  return isValid

}


function ValidateQuickContact(FormID){
	var isValid = true;
	var msg_str="Please fill in the above fields marked in red";
	if (isNull(document.getElementById("GEFirstName"),"Name")){isValid= false;}
	if (isNull(document.getElementById("GECountry"),"Country")){isValid=false;}
	if (isNull(document.getElementById("GEEmail"),"EMail")){isValid=false;}
	if (notEmail(document.getElementById("GEEmail"),"EMail")){isValid=false;}
	if (isNull(document.getElementById("GEPhoneCountryCode"),"Country Code")){isValid= false;}
	if (fnChkNum2(document.getElementById("GEPhoneCountryCode"),"Country Code")){isValid= false;}
	if (isNull(document.getElementById("GEPhoneAreaCode"),"Area Code")){isValid= false;}
	if (fnChkNum2(document.getElementById("GEPhoneAreaCode"),"Area Code")){isValid= false;}
	if (isNull(document.getElementById("GEPhone"),"Phone Number")){isValid= false;}
	if (fnChkNum2(document.getElementById("GEPhone"),"Phone Number")){isValid= false;}
	if (isNull(document.getElementById("GEQuery"),"Comments")){isValid=false;}
	if (isNull(document.getElementById("securityCode"),"CaptchaText")){isValid=false;}
	if ((isSame1(document.getElementById("CAPTCHA_Postback"),document.getElementById("securityCode"))) && (isValid==true)){
		msg_str="Please Enter the Security Code Correctly";
		isValid=false;
	}
	if(isValid==false)
		document.getElementById("FORMERROR").innerHTML =msg_str;
	else
		document.getElementById("FORMERROR").innerHTML = "";
	return isValid
}


function ValidateDedicatedSupport(FormID){
  var isValid = true;
      var msg_str="Please fill in the above fields marked in red";
	if (isNull(document.getElementById("DSAFirstName"),"Name")){isValid= false;}
	if (isNull(document.getElementById("DSACompanyName"),"CompanyName")){isValid= false;}
	if (isNull(document.getElementById("DSAEmail"),"EMail")){isValid=false;}
	if (notEmail(document.getElementById("DSAEmail"),"EMail")){isValid=false;}
	if (isNull(document.getElementById("DSACountry"),"Country")){isValid=false;}
	if (notChecked(document.getElementById("PreferredBilling"),"Preferred Billing")){return false;}
	if (isNull(document.getElementById("DSANoPeoples"),"No. Of People")){isValid=false;}
	if (fnChkNum2(document.getElementById("DSANoPeoples"),"No. Of People")){isValid=false;}
	if (notChecked(document.getElementById("DSASupport"),"Support Type")){return false;}

	if (isNull(document.getElementById("securityCode"),"CaptchaText")){isValid=false;}
	if ((isSame1(document.getElementById("CAPTCHA_Postback"),document.getElementById("securityCode")))&&(isValid==true)){
		msg_str="Please Enter the Security Code Correctly";
		isValid=false;
	}
	
	if(isValid==false)
       document.getElementById("FORMERROR").innerHTML =msg_str;
	  else
		   document.getElementById("FORMERROR").innerHTML = "";
	  return isValid
}


function fnSubmitRFPValidate(FormID){
  var isValid = true;
   var msg_str="Please fill in the above fields marked in red";
	if (isNull(document.getElementById("RFTName"),"Name")){isValid= false;}
	if (isNull(document.getElementById("RFTEmail"),"EMail")){isValid=false;}
	if (notEmail(document.getElementById("RFTEmail"),"EMail")){isValid=false;} 
	if (isNull(document.getElementById("RFTPhone"),"Phone")){isValid=false;}
	if (fnChkNum2(document.getElementById("RFTPhone"),"Phone")){isValid=false;}
	if (notChecked(document.getElementById("RFPProject_Features"),"Project Features")){return false;} 
	if (isNull(document.getElementById("securityCode"),"CaptchaText")){isValid=false;}
	 if ((isSame1(document.getElementById("CAPTCHA_Postback"),document.getElementById("securityCode")))&&(isValid==true)){
	  msg_str="Please Enter the Security Code Correctly";
	  isValid=false;
   }
   if(isValid==false)
		   document.getElementById("FORMERROR").innerHTML =msg_str;
	  else
		   document.getElementById("FORMERROR").innerHTML = "";
	  return isValid
	
}

