//Used in Left Panel Web articles..
function changelocation(url){
	window.location=''+baseurl+'/'+suburl+'/'+page+'?pg='+pg+'&sl='+sl;
}
//Use to Reset the form
function reset(fname){
	fname.reset();
}
//Used to Submit Form
function submit(){
 	document.form2.submit();
}
//Used to Show Hide Menus in Div
function menuOpenClose(divID, node) {
	if(document.getElementById(divID).style.display=='none'){
		document.getElementById(divID).style.display='block';
	}
	else{
		document.getElementById(divID).style.display='none';
	}
}
//Used to Validate fields from HTML Tags
function html_entities_check(val,val1){
	var doc=eval(document.val);
	if((val1.value.indexOf('<')!=-1) || (val1.value.indexOf('>')!=-1)){
		alert("You cannot use HTML Tags in this field...");
		val1.value='';
		val1.focus();
		return false;
	}
}
//Used for Add to Faviourat
function addfav(){
	if (document.all){
		window.external.AddFavorite("http://www.weblinkindia.net","Web designing Solutions");
	}
}
//Used in form validation.
function chktrim(inputString){
	if (typeof inputString != "string") { 
		return inputString; 
	}
    var retValue = inputString;
    var ch = retValue.substring(0, 1);
    while (ch == " ") { 
    	retValue = retValue.substring(1, retValue.length);
        ch = retValue.substring(0, 1);
    } 
    ch = retValue.substring(retValue.length-1, retValue.length);
	while (ch == " ") { 
    	retValue = retValue.substring(0, retValue.length-1);
        ch = retValue.substring(retValue.length-1, retValue.length);
	}
    while (retValue.indexOf("  ") != -1) { 
    	retValue = retValue.substring(0, retValue.indexOf("  ")) + retValue.substring(retValue.indexOf("  ")+1, retValue.length); // Again, there are two spaces in each of the strings
	}
    return retValue; 
}
//Used in Form Validation
function IsNumeric(strString,msg){
   var strValidChars = "0123456789.-";
   var strChar;
   var blnResult = true;
	for (i = 0; i < strString.length && blnResult == true; i++){
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1){
        alert(msg)
	     blnResult = false;
      }
  }
  return blnResult;
}
//Used in form validation
function isitblank(obj,msg){
	if(obj.value==""){
		alert (msg);
		obj.focus();
		return false;
	}
	return true;
}
//Used in Form Validation
function isselectblank(obj,msg){
	if(obj.options[obj.selectedIndex].value==''){
		alert (msg);
		obj.focus();
		return false;
	}
	return true;
}
//Used in Checking Email Field
function validemail(obj){
	if(obj.value!=""){
		if (obj.value.indexOf("@")<2){
			alert("This email address is wrong. Please"+" specify the prefix and '@' sign.");
			obj.focus()
			return false;
		}
		if ((obj.value.length-obj.value.indexOf("."))<3){
			alert("This email address is wrong. "+" It should include a "+".com, .edu, .net, .org, .gov, .mil, .co.in, etc.---");
			obj.focus()
			obj.select()
			return false;
   	}
	}
 	return true;
}
//Used to open PopUps
var path="";
var pop='';
function openwin(nm,width,height) {
	var name=nm;
	if (pop && !pop.closed) {
	   pop.close();
	}
	pop=eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=5,top=5,width="+width+",height="+height+",directories=no,menubar=no,SCROLLBARS=yes,left=2,right=2')");
	if (!pop.opener) popUpWin.opener = self;
}
//Used to open PopUps
function openwin1(nm,width,height) {
      var name=nm;
      if (pop && !pop.closed) {
         pop.close();
      }
      pop=eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=5,top=5,width="+width+",height="+height+",directories=no,menubar=no,SCROLLBARS=yes,left=2,right=2')");
      if (!pop.opener) popUpWin.opener = self;
}
//Used to open PopUps
function openwin2(nm,width,height) {
      var name=nm;
      if (pop && !pop.closed) {
         pop.close();
      }
      pop=eval("window.open('"+name+"','NewWIN','chrome[4],toolbar=no,left=5,top=5,width="+width+",height="+height+",directories=no,menubar=yes,SCROLLBARS=yes,left=2,right=2')");
      if (!pop.opener) popUpWin.opener = self;
}
//for all Search Boxes
function check_word(){
	if (chktrim(document.frm1.word.value).length == 0) {
		alert("Please Enter Search Keyword\n");
		document.frm1.word.focus();
		return false;
  	}
}
//Search form Validation
function search_valid(val,val1){
	var doc=document.form1;
	if(!doc.word.value.length){
		alert("Please Enter the Keyword for Search");
		doc.word.focus();
		return false;
	}
}
//Search form Validation
function search_check(){
	var frm=document.form1;
	if(!frm.search.value.length){
		alert("Please enter the search keyword");
		frm.search.focus();
		return false;
	}
	if(frm.search_catg.value==""){
		alert("Please select the search category");
		frm.search_catg.focus();
			return false;
	}
}
//Member form Validation
function check_mem(){
	if (chktrim(document.form2.fname.value).length == 0) {
		alert("Please Enter Your First Name\n");
  	 	document.form2.fname.focus();
   	return false;
  	}
  	if (chktrim(document.form2.lname.value).length == 0) {
		alert("Please Enter Your Last Name\n");
  	 	document.form2.lname.focus();
   	return false;
  	}
  	if (chktrim(document.form2.org_nm.value).length == 0) {
		alert("Please Enter Your Company Name\n");
  	 	document.form2.org_nm.focus();
   	return false;
  		}
	if (chktrim(document.form2.add1.value).length == 0) {
		alert("Please Enter Your Street Address\n");
  	 	document.form2.add1.focus();
   	return false;
  	}
	if (chktrim(document.form2.city.value).length == 0) {
  		alert("Please Enter Your City\n");
  	 	document.form2.city.focus();
   	return false;
  	}
	if(document.form2.state.value== 'x'){
	  	alert("Please Enter Your state\n");
	  	document.form2.state.focus();
	  	return false;
  	}
  	if (document.form2.state.value== 'x' && chktrim(document.form2.state1.value).length == 0) {
  		alert("Please Enter or Select Your State\n");
  	 	document.form2.state1.focus();
   	return false;
  	}
  	if (document.form2.state.value != 'x' && chktrim(document.form2.state1.value).length != 0) {
  		alert("Please Enter or Select only one State\n");
  	 	document.form2.state.focus();
   	return false;
  	}
	if (chktrim(document.form2.pin_cd.value).length == 0) {
  		alert("Please Enter Your Zip Code\n");
  	 	document.form2.pin_cd.focus();
   	return false;
  	}
  	if (isNaN(document.form2.pin_cd.value)) {
  		alert("Please Enter Your Zip Code\n");
  		document.form2.pin_cd.value="";
  	 	document.form2.pin_cd.focus();
   	return false;
  	}
  	if (chktrim(document.form2.phone.value).length == 0) {
   	alert("Please Enter Your Phone No\n");
  	 	document.form2.phone.focus();
   	return false;
  	}
  	if (chktrim(document.form2.email.value).length == 0) {
 		alert("Please Enter Your Email Id\n");
  	 	document.form2.email.focus();
   	return false;
  	}
  	if (document.form2.email.value.indexOf('@') == -1) {
    alert("Error in E-mail address");
    document.form2.email.value="";
    document.form2.email.focus();
    return false;
  }
  if (document.form2.email.value.indexOf('.') == -1) {
    alert("Error in E-mail address");
    document.form2.email.value="";
    document.form2.email.focus();
    return false;
  }
  if (document.form2.email.value.indexOf('@') != document.form2.email.value.lastIndexOf('@')) {
    alert("Please Specify One E-mail address only");
    document.form2.email.value="";
    document.form2.email.focus();
    return false;
	}
   if (chktrim(document.form2.pass.value).length == 0) {
		alert("Please Enter Your Password\n");
  	 	document.form2.pass.focus();
   	return false;
  	} 
  	if (chktrim(document.form2.cpass.value).length == 0) {
		alert("Please Enter Your Password Once again\n");
  	 	document.form2.cpass.focus();
   	return false;
  	}
  	if (document.form2.cpass.value != document.form2.pass.value){
		alert("Please Enter Password Correctly Again\n");
  	 	document.form2.pass.focus();
   	return false;
  	}
}
//Career Page form Validatuion
function chkjoblist() {
	if (chktrim(document.formn.Name.value).length == 0) {
  		alert("Please Enter Your Name\n");
  	 	document.formn.Name.focus();
   	return false;
  	}
	if (chktrim(document.formn.Father.value).length == 0) {
  		alert("Please Enter Father or Mother Name\n");
	   document.formn.Father.focus();
   return false;
  }
	if (chktrim(document.formn.dd.value).length == 0) {  
  		alert("Please Enter your Date Of Birth");
		document.formn.dd.focus();
		return false;
	}
	if (isNaN(document.formn.dd.value)){
		alert("Please Enter Date of Birth Correctly");
		document.formn.dd.focus();
		document.formn.dd.select();
		return false;   
   }
	if (document.formn.dd.value>31){
		alert("Please Enter Date of Birth Correctly");
		document.formn.dd.focus();
		return false;
	}
	if (document.formn.mm.value==""){
		alert("Please Enter your Date Of Birth");
		document.formn.mm.focus();
		return false;
	}
	if (isNaN(document.formn.mm.value)){
		alert("Please Enter the Month Correctly");
		document.formn.mm.focus();
		document.formn.mm.select();
		return false;   
   }
	if (document.formn.mm.value>12){
		alert("Please Enter Date of Birth Correctly");
		document.formn.mm.focus();
		document.formn.mm.select();
		return false;
	}	
	if (document.formn.yy.value==""){
		alert("Please Enter your Date Of Birth");
		document.formn.yy.focus();
		return false;
	}
	if (isNaN(document.formn.yy.value)){
		alert("Please Enter the Year Correctly");
		document.formn.yy.focus();
		document.formn.yy.select();
		return false;   
 	}
	if (document.formn.yy.value>2004){
		alert("Please Enter the year Correctly");
		document.formn.yy.focus();
		document.formn.yy.select();
		return false;
	}	
	if(!document.formn.Email.value.length) {
	   alert("Please Enter Your Email Address\n");
	   document.formn.Email.focus();
	   return false;
  	}
	if (document.formn.Email.value.indexOf('@') == -1) {
    alert("Error in E-mail address");
    document.formn.Email.value="";
    document.formn.Email.focus();
    return false;
   }
	if (document.formn.Email.value.indexOf('.') == -1) {
    alert("Error in E-mail address");
    document.formn.Email.value="";
    document.formn.Email.focus();
    return false;
   }
   if (document.formn.Email.value.indexOf('@') != document.formn.Email.value.lastIndexOf('@')) {
    alert("Please Specify One E-mail address only");
    document.formn.Email.value="";
    document.formn.Email.focus();
    return false;
  }
  if (chktrim(document.formn.address.value).length == 0) {
	alert("Please Enter Your Address\n");
   document.formn.address.focus();
   return false;
  }
  if (chktrim(document.formn.City.value).length == 0) {
  	alert("Please Enter City\n");
   document.formn.City.focus();
   return false;
  }
  if (chktrim(document.formn.phone1.value).length == 0) {
  	alert("Please Enter Country Code\n");
   document.formn.phone1.focus();
   return false;
  }
  if(IsNumeric(document.formn.phone1.value,"Please Enter Proper Phone No")){
		return true;
  }
  if (chktrim(document.formn.phone2.value).length == 0) {
  	alert("Please Enter City Code\n");
   document.formn.phone2.focus();
   return false;
  }
  if(IsNumeric(document.formn.phone2.value,"Please Enter Proper Phone No")){
	return true;

  }
 	if (chktrim(document.formn.phone3.value).length == 0) {
	   alert("Please Enter your Phone Number\n");
	   document.formn.phone3.focus();
	   return false;
 	}
 	if(IsNumeric(document.formn.phone3.value,"Please Enter Proper Phone No")){
		return true;
	}
}
//Join Form Validation
function chktst(){
	if (chktrim(document.joinForm.yourName.value).length == 0) {
		alert("Please Enter Your Name\n");
   	document.joinForm.yourName.focus();
   	return false;
  	}
  	if (chktrim(document.joinForm.compName.value).length == 0) {
 		alert("Please Enter Your Company Name\n");
	   document.joinForm.compName.focus();
	   return false;
	}
	if (chktrim(document.joinForm.country.value).length == 0) {
		alert("Please Enter Your Country\n");
	   document.joinForm.country.focus();
	   return false;
  	}
  	if (chktrim(document.joinForm.email.value).length == 0) {
		alert("Please Enter Email ID\n");
	   document.joinForm.email.focus();
	   return false;
  }
  if (document.joinForm.email.value.indexOf('@') == -1) {
    alert("Error in E-mail address");
    document.joinForm.email.value="";
    document.joinForm.email.focus();
    return false;
  }
  if (document.joinForm.email.value.indexOf('.') == -1) {
    alert("Error in E-mail address");
    document.joinForm.email.value="";
    document.joinForm.email.focus();
    return false;
  }
  if (document.joinForm.email.value.indexOf('@') != document.joinForm.email.value.lastIndexOf('@')) {
    alert("Please Specify One E-mail address only");
    document.joinForm.email.value="";
    document.joinForm.email.focus();
    return false;
  }
  	if (chktrim(document.joinForm.msgDetail.value).length == 0) { 
		alert("Please Enter Your Message\n");
	   document.joinForm.msgDetail.focus();
	   return false;
	}
}
//Domain Registration Page Validation
function chkvalue(formn){
	if (chktrim(document.formn.Domain.value).length == 0) { 
		alert("Please Enter Your Domain Name\n");
    	document.formn.Domain.focus();
    	return false;
  	}
  	if (chktrim(document.formn.Company_Name.value).length == 0) { 
		alert("Please Enter Organisation name \n");
   	document.formn.Company_Name.focus();
   	return false;
  	}
  	if (chktrim(document.formn.natureBusiness.value).length == 0) { 
 		alert("Please Enter Nature of Business\n");
   	document.formn.natureBusiness.focus();
   	return false;
  	}
  	if (chktrim(document.formn.Your_Name.value).length == 0) { 
		alert("Please Enter Your Name\n");
   	document.formn.Your_Name.focus();
   	return false;
  	}
	if (chktrim(document.formn.Designation.value).length == 0) { 
  		alert("Please Enter Your Designation\n");
   	document.formn.Designation.focus();
   	return false;
  }
  if (chktrim(document.formn.email.value).length == 0) { 
  	alert("Please Enter Email ID\n");
   document.formn.email.focus();
   return false;
  }
  if (document.formn.email.value.indexOf('@') == -1) {
    alert("Error in E-mail address");
    document.formn.email.value="";
    document.formn.email.focus();
    return false;
  }
  if (document.formn.email.value.indexOf('.') == -1) {
    alert("Error in E-mail address");
    document.formn.email.value="";
    document.formn.email.focus();
    return false;
  }
  if (document.formn.email.value.indexOf('@') != document.formn.email.value.lastIndexOf('@')) {
    alert("Please Specify One E-mail address only");
    document.formn.email.value="";
    document.formn.email.focus();
    return false;
  }
  if (chktrim(document.formn.cty_code.value).length == 0) { 	
  	alert("Please Enter Country code\n");
   document.formn.cty_code.focus();
   return false;
  }
  if (chktrim(document.formn.city_code.value).length == 0) { 		
	alert("Please Enter City Code\n");
   document.formn.city_code.focus();
   return false;
 }
 if (chktrim(document.formn.phone.value).length == 0) { 			
  	alert("Please Enter Phone Numbers\n");
   document.formn.phone.focus();
   return false;
 }
 if (chktrim(document.formn.cty_code1.value).length == 0) { 				
	alert("Please Enter Country code\n");
   document.formn.cty_code1.focus();
   return false;
 }
 if (chktrim(document.formn.city_code1.value).length == 0) { 				
  alert("Please Enter City Code\n");
   document.formn.city_code1.focus();
   return false;
 }
 if (chktrim(document.formn.Street.value).length == 0) { 				
 	alert("Please Enter your Address\n");
   document.formn.Street.focus();
   return false;
 }
 if (chktrim(document.formn.State.value).length == 0) { 				
 	alert("Please Enter your State\n");
   document.formn.State.focus();
   return false;
 }
 if (chktrim(document.formn.Country.value).length == 0) { 				
	alert("Please Enter your Country\n");
   document.formn.Country.focus();
   return false;
  }
  if (chktrim(document.formn.Requirments.value).length == 0) { 				
	alert("Please Enter your Requirements\n");
   document.formn.Requirments.focus();
   return false;
  }	
}
function chkvalid(){
	if (chktrim(document.flist.name.value).length == 0) { 				
		alert("Please Enter Your Name\n");
     	document.flist.name.focus();
	   return false;
  	}
  	if (chktrim(document.flist.cnm.value).length == 0) { 				
  		alert("Please Enter Organisation\n");
	   document.flist.cnm.focus();
   	return false;
  	}
  	if ((!document.flist.interest[0].checked) && (!document.flist.interest[1].checked) && (!document.flist.interest[2].checked)) {
      	alert("Please let us know your interest in Websolutions.\n");
      document.flist.interest[0].focus();
      return false;
  	}
	if ((!document.flist.knowledge[0].checked) && (!document.flist.knowledge[1].checked)) {
      alert("Do you have working knowledge of Internet .\n");
      document.flist.knowledge[0].focus();
      return false;
  	}
	if ((!document.flist.medium[0].checked) && (!document.flist.medium[1].checked) && (!document.flist.medium[2].checked)) {
      alert("Please let us know the mode to contact you\n");
      document.flist.medium[0].focus();
      return false;
  	}
  	if (chktrim(document.flist.address.value).length == 0) { 				
		alert("Please Enter Your Address\n");
     	document.flist.address.focus();
     	return false;
  }
  if (chktrim(document.flist.pin.value).length == 0) { 				
  	alert("Please Enter Your PinCode\n");
   document.flist.pin.focus();
   return false;
  }
  if (chktrim(document.flist.pin_code.value).length == 0) { 				
  		alert("Enter Phone Country Code\n");
      document.flist.ph_code.focus();
      return false;
  }
  if (chktrim(document.flist.ph1.value).length == 0) { 				
  		alert("Enter Phone City Code\n");
      document.flist.ph1.focus();
      return false;
  }
  if (chktrim(document.flist.ph2.value).length == 0) { 				
  		alert("Enter Phone Number\n");
      document.flist.ph2.focus();
      return false;
  }
  if (document.flist.ph_code.value.length ) {
  		if(IsNumeric(document.flist.ph_code.value,"Please Enter Proper Phone City Code")){
			return true ;
		}
		return false;
	}
 	if (document.flist.ph1.value.length ) {
  		if(IsNumeric(document.flist.ph1.value,"Please Enter Proper Phone City Code")){
			return true ;
		}
		return false;
	}
	if (document.flist.ph2.value.length ) {
  		if(IsNumeric(document.flist.ph2.value,"Please Enter Proper Phone No")){
			return true ;
		}
		return false;
	}
	if (chktrim(document.flist.user.value).length == 0) { 				
		alert("Please Enter Your Email Address\n");
     	document.flist.user.focus();
     	return false;
  }
  if (document.flist.user.value.indexOf('@') == -1) {
      alert("Error in E-mail address");
      document.flist.user.focus();
      return false;
  }
  if (document.flist.user.value.indexOf('.') == -1) {
      alert("Error in E-mail address");
      document.flist.user.focus();
      return false;
   }
   if (document.flist.user.value.indexOf('@') != document.flist.user.value.lastIndexOf('@')) {
      alert("Please Specify One E-mail address only");
      document.flist.user.focus();
      return false;
   }
}
function chklist2(){
	if (chktrim(document.formn.CName.value).length == 0) { 				
		alert("Please Enter Your Name \n");
    	document.formn.CName.focus();
    	return false;
  	}
  	if (chktrim(document.formn.Country.value).length == 0) { 				
   	alert("Please Enter Your Country \n");
    	document.formn.Country.focus();
    	return false;
  	}
  	if (chktrim(document.formn.contcode.value).length == 0) { 				
  		alert("Please Enter Your Country Code\n");
    	document.formn.contcode.focus();
    	return false;
  	}
  	if (chktrim(document.formn.citycode.value).length == 0) { 				
  		alert("Please Enter Your City Code\n");
    	document.formn.citycode.focus();
    	return false;
  	}
  	if (chktrim(document.formn.phone.value).length == 0) { 				  	
		alert("Please Enter Your Phone Number \n");
    	document.formn.phone.focus();
    	return false;
  	}
  	if (document.formn.phone.value.length ) {
  		if(IsNumeric(document.formn.phone.value,"Please Enter Proper Phone Number")){
			return true ;
		}
		return false;
	}
	if (chktrim(document.formn.email.value).length == 0) { 				  	
  		alert("Please Enter Your Email Address \n");
    	document.formn.email.focus();
    	return false;
  	}
  	if (document.formn.email.value.indexOf('@') == -1) {
    	alert("Error in E-mail address");
    	document.formn.email.focus();
    	return false;
  	}
  	if (document.formn.email.value.indexOf('.') == -1) {
    	alert("Error in E-mail address");
    	document.formn.email.focus();
    	return false;
  	}
  	if (document.formn.email.value.indexOf('@') != document.formn.email.value.lastIndexOf('@')) {
    	alert("Please Specify One E-mail address only");
    	document.formn.email.focus();
    	return false;
  	}
}
function check_red(){
	if (chktrim(document.formn.Name.value).length == 0) { 				  	
		alert("Please Enter Your Name\n");
  		document.formn.Name.focus();
   	return false;
  	}
	if (chktrim(document.formn.CompanyName.value).length == 0) { 				  	
  		alert("Please Enter Company Name\n");
  	 	document.formn.CompanyName.focus();
   	return false;
  	}
	if (chktrim(document.formn.natureBusiness.value).length == 0) { 				  	
  		alert("Please Enter Your Buisness Nature");
   	document.formn.natureBusiness.focus();
   	return false;
	}
	if (chktrim(document.formn.Street.value).length == 0) { 				  	
		alert("Please Enter Your Street Address\n");
  		document.formn.Street.focus();
   	return false;
  	}
	if (chktrim(document.formn.City.value).length == 0) { 				  	
  		alert("Please Enter Your City\n");
  	 	document.formn.City.focus();
   	return false;
  	}
	if (chktrim(document.formn.State.value).length == 0) {
  		alert("Please Enter Your State\n");
   	document.formn.State.focus();
   	return false;
	}
 	if (chktrim(document.formn.Country.value).length == 0) {
		alert("Please Enter Your Country\n");
   	document.formn.Country.focus();
   	return false;
	}
	if (chktrim(document.formn.email.value).length == 0) {
		alert("Please Enter Your Email Address \n");
	   document.formn.email.focus();
	   return false;
	}
	if (document.formn.email.value.indexOf('@') == -1) {
	   alert("Error in E-mail address");
	   document.formn.email.focus();
	   return false;
	}
	if (document.formn.email.value.indexOf('.') == -1) {
	   alert("Error in E-mail address");
	   document.formn.email.focus();
	   return false;
	}
	if (document.formn.email.value.indexOf('@') != document.formn.email.value.lastIndexOf('@')) {
	    alert("Please Specify One E-mail address only");
	    document.formn.email.focus();
	    return false;
	}
}
function chklist1() {
	if (chktrim(document.formn.Name.value).length == 0) {
  		alert("Please Enter Your Name\n");
   	document.formn.Name.focus();
   	return false;
  	}
	if (chktrim(document.formn.Company.value).length == 0) {
  		alert("Please Enter Company Name\n");
   	document.formn.Company.focus();
   	return false;
  }
  if (chktrim(document.formn.Phone.value).length == 0) {	
  		alert("Please Enter Your Phone\n");
   	document.formn.Phone.focus();
   	return false;
  }
  if (chktrim(document.formn.Address.value).length == 0) {	
		alert("Please Enter Your Address\n");
   	document.formn.Address.focus();
   	return false;
  }
  if (chktrim(document.formn.Email.value).length == 0) {		
  	alert("Please Enter Your Email Address\n");
   document.formn.Email.focus();
   return false;
  }
  if (document.formn.Email.value.indexOf('@') == -1) {
     alert("Error in E-mail address");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Email.value.indexOf('.') == -1) {
     alert("Error in E-mail address");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Email.value.indexOf('@') != document.formn.Email.value.lastIndexOf('@')) {
     alert("Please Specify One E-mail address only");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Queryfor.value=="") {		
   	alert("Please select type of Query you want to do.\n");
   	document.formn.Queryfor.focus();
   	return false;
  }
  if (chktrim(document.formn.message.value).length == 0) {		
   alert("Please Enter Message\n");
   document.formn.message.focus();
   return false;
  }
}
function calc() {
	if (chktrim(document.formn.name.value).length == 0) {		
  		alert("Please Enter Your Name\n");
   	document.formn.name.focus();
   	return false;
  }
  if (chktrim(document.formn.org.value).length == 0) {				
  		alert("Please Enter Organisation\n");
   	document.formn.org.focus();
   	return false;
  }
  if (chktrim(document.formn.natureBusiness.value).length == 0) {				
  		alert("Please Enter Nature of Business\n");
    	document.formn.natureBusiness.focus();
    	return false;
  }
  if (chktrim(document.formn.address.value).length == 0) {	
  		alert("Please Enter Address\n");
   	document.formn.address.focus();
   	return false;
  }
  if (chktrim(document.formn.country.value).length == 0) {	
  		alert("Please Enter Country\n");
   	document.formn.country.focus();
   	return false;
  }
  if (chktrim(document.formn.phone.value).length == 0) {	
  		alert("Please Enter Phone Numbers\n");
   	document.formn.phone.focus();
   	return false;
  }
  if (chktrim(document.formn.email.value).length == 0) {	
  	alert("Please Enter Email ID\n");
   document.formn.email.focus();
   return false;
  }
  if (document.formn.email.value.indexOf('@') == -1) {
    alert("Error in E-mail address");
    document.formn.email.value="";
    document.formn.email.focus();
    return false;
  }
  if (document.formn.email.value.indexOf('.') == -1) {
    alert("Error in E-mail address");
    document.formn.email.value="";
    document.formn.email.focus();
    return false;
  }
  if (document.formn.email.value.indexOf('@') != document.formn.email.value.lastIndexOf('@')) {
    alert("Please Specify One E-mail address only");
    document.formn.email.value="";
    document.formn.email.focus();
    return false;
  }
}
function gotolink() {
   fr2=document.formn.service.selectedIndex;
   fr3=document.formn.service.options[fr2].value;
   if (fr3 == "1") { 
     location.href="#1";
   }
   if (fr3 == "2") { 
     location.href="#2";
   }
   if (fr3 == "3") { 
     location.href="#3";
   }
   if (fr3 == "4") { 
     location.href="#4";
   }
   if (fr3 == "5") { 
     location.href="#5";
   }
   if (fr3 == "6") { 
     location.href="#6";
   }
   if (fr3 == "7") { 
     location.href="#7";
   }
   if (fr3 == "8") { 
     location.href="#8";
   }
}
//Book a Domain Page Form Validation
function chk() {
	if (chktrim(document.formn.Domain.value).length == 0) {	
	  if (!document.formn.Domain.value.length) {
	    alert("Please Enter Your Domain Name\n");
	    document.formn.Domain.focus();
	    return false;
	  }
	  if (chktrim(document.formn.Name.value).length == 0) {	
	  		alert("Please Enter Your Name\n");
	    	document.formn.Name.focus();
	    	return false;
	  }
	  if (chktrim(document.formn.Organisation.value).length == 0) {	
	  	alert("Please Enter Your Organisation Name\n");
	   document.formn.Organisation.focus();
	   return false;
	  }
	  if (chktrim(document.formn.natureBusiness.value).length == 0) {	
	  		alert("Please Enter Nature of Business\n");
	    	document.formn.natureBusiness.focus();
	    	return false;
	  }
	  if (chktrim(document.formn.Address.value).length == 0) {	
	  	alert("Please Enter Your Address \n");
	   document.formn.Address.focus();
	   return false;
	  }
	  if (chktrim(document.formn.State.value).length == 0) {	
	   alert("Please Enter State \n");
	    document.formn.State.focus();
	    return false;
	  }
	  if (chktrim(document.formn.Country.value).length == 0) {	
		alert("Please Enter Country \n");
	   document.formn.Country.focus();
	   return false;
	 }
	 if (chktrim(document.formn.phone.value).length == 0) {	
	  	alert("Please Enter Your Phones \n");
	   document.formn.phone.focus();
	   return false;
	 }
	 if (chktrim(document.formn.Email.value).length == 0) {		
	  	alert("Please Enter Your Email Address \n");
	   document.formn.Email.focus();
	   return false;
	 }
	 if (document.formn.Email.value.indexOf('@') == -1) {
	    alert("Error in E-mail address");
	    document.formn.Email.focus();
	    return false;
	 }
	 if (document.formn.Email.value.indexOf('.') == -1) {
	    alert("Error in E-mail address");
	    document.formn.Email.focus();
	    return false;
	 }
	 if (document.formn.Email.value.indexOf('@') != document.formn.Email.value.lastIndexOf('@')) {
	    alert("Please Specify One E-mail address only");
	    document.formn.Email.focus();
	    return false;
	 }
	 if ((!document.formn.site_required[0].checked) && (!document.formn.site_required[1].checked)) {
		alert("Select the type of site you would like to have\n");  
		document.formn.site_required[0].focus();
	    return false;
	 } 
	 if ((!document.formn.pref_contact[0].checked) && (!document.formn.pref_contact[1].checked) && (!document.formn.pref_contact[2].checked)) {
	    alert("How early do you wish to have a quote?\n");
	    document.formn.pref_contact[0].focus();
	    return false;
	 }
  }
}
function chklist() {
	if (chktrim(document.formn.Domainname.value).length == 0) {		
		alert("Please Enter Domain Name!\n");
     	document.formn.DomainName.focus();   
     	return false;
   }
   if (chktrim(document.formn.Name.value).length == 0) {		
   	alert("Please Enter Your Name!\n");
     	document.formn.Name.focus();
	   return false;  
   }
   if (chktrim(document.formn.CompanyName.value).length == 0) {		   
   	alert("Please Enter Your Company Name!\n");
     	document.formn.CompanyName.focus();
     	return false;
   }
   if (chktrim(document.formn.Street.value).length == 0) {		   
   	alert("Please Enter Your Address!\n");
     document.formn.Street.focus();
     return false;
   }
   if (chktrim(document.formn.City.value).length == 0) {		   
   	alert("Please Enter Your City!\n");
     document.formn.City.focus();
     return false;
   }
   if (chktrim(document.formn.State.value).length == 0) {
   	alert("Please Enter Your State!\n");
     	document.formn.State.focus();
     	return false;
   }
   if (chktrim(document.formn.email.value).length == 0) {
		alert("Please Enter Email ID!\n");
     	document.formn.email.focus();
	   return false;
   }
   if (document.formn.email.value.indexOf('@') == -1) {
     alert("Error in E-mail address");
     document.formn.email.value="";
     document.formn.email.focus();
     return false;
   }
   if (document.formn.email.value.indexOf('.') == -1) {
     alert("Error in E-mail address");
     document.formn.email.value="";
     document.formn.email.focus();
     return false;
   }
   if (document.formn.email.value.indexOf('@') != document.formn.email.value.lastIndexOf('@')) {
     alert("Please Specify One E-mail address only");
     document.formn.email.value="";
     document.formn.email.focus();
     return false;
   }
   if ((!document.formn.site_typ[0].checked) && (!document.formn.site_typ[1].checked) && (!document.formn.site_typ[2].checked)) {
      alert("Please select the type of site you wish to have \n");
      document.formn.site_typ[0].focus();
      return false;
   }
   if (((document.formn.site_typ[0].checked) || (document.formn.site_typ[1].checked)) && ((!document.formn.budget[0].checked) && (!document.formn.budget[1].checked) && (!document.formn.budget[2].checked) && (!document.formn.budget[3].checked))) {
      alert("You Have Not Selected The Budget For B2B/B2C Website \n");
      document.formn.budget[0].focus();
      return false;
   }
   if (((document.formn.site_typ[2].checked))  && ((!document.formn.budget[4].checked) && (!document.formn.budget[5].checked) && (!document.formn.budget[6].checked) && (!document.formn.budget[7].checked))) {
      alert("You Have Not Selected The Budget For Static Website \n");
      document.formn.budget[1].focus();
      return false;
   }
   if ((!document.formn.pref_contact[0].checked) && (!document.formn.pref_contact[1].checked) && (!document.formn.pref_contact[2].checked)) {
      alert("Please let us know the priority of reciving quote \n");
      document.formn.pref_contact[0].focus();
      return false;
   }
   if((document.formn.refer.value.length) < 8) {
     alert("Please Enter A Site For Reference!\n");
     document.formn.refer.focus();
     return false;
   }
} 
function chk2() {
   document.formn.char_len.value=document.formn.details.value.length;
	if (document.formn.details.value.length>=250) {
      alert("your text exceed 250 characters");
      document.formn.details.focus();
      return false;
    }
}
function setDateBox(){
	if(document.form3.dateType.selectedIndex ==0) {
			document.form3.dateTo.disabled=true;
	}
	else {
			document.form3.dateTo.disabled=false;
		}		
}
function setbillIDBox(){
	if(document.form1.transType.options[document.form1.transType.selectedIndex].value !="RCPT") {
			document.form1.billID.disabled=true;
	}
	else {
			document.form1.billID.disabled=false;
	}		
}
//Check Domain name Validation
function chkDomainName(chk){
	if (chktrim(chk.domain.value).length<2) {
		alert("Enter Your domain name (upto 63 characters only) ");
		chk.domain.focus();
		return false;
	}
}
//Space booking Form Validation
function spaceOrderChk(){
	if (chktrim(document.form2.Name.value).length == 0) {
		alert("Please Enter Your Name \n");
	   document.formn.Name.focus();
	   return false;
	}
	if (chktrim(document.form2.phone.value).length == 0) {
		alert("Please Enter Your Phones \n");
	   document.formn.Phone.focus();
	   return false;
	}
	if (chktrim(document.form2.EmailID.value).length == 0) {
		alert("Please Enter Your Email Address \n");
	   document.formn.EmailID.focus();
	   return false;
	}
	if (document.formn.EmailID.value.indexOf('@') == -1) {
	   alert("Error in E-mail address");
	   document.formn.EmailID.focus();
	   return false;
	}
	if (document.formn.EmailID.value.indexOf('.') == -1) {
	   alert("Error in E-mail address");
	   document.formn.EmailID.focus();
	   return false;
	}
	if (document.formn.EmailID.value.indexOf('@') != document.formn.EmailID.value.lastIndexOf('@')) {
	  alert("Please Specify One E-mail address only");
	  document.formn.EmailID.focus();
	  return false;
	}
	if (document.formn.s_slot.options[document.formn.s_slot.selectedIndex].value==""){
		 alert("Please Select the space slot \n");
	    document.formn.s_slot.focus();
	    return false;
	}
	if ((document.formn.s_slot.options[document.formn.s_slot.selectedIndex].value=="mx") && (!document.formn.Details.value.length)) {
	   alert("Please Enter Exact Space requirement in Other Details \n");
	   document.formn.Details.focus();
	   return false;
	}
}
//CCard/ and Dynamic website Order Form validation
function pymtModeValidation(chk1, modeType){
	if (!chk1.space_req.value.length) {
	   alert ("Please Enter Payment Made For..");
	   chk1.space_req.focus();
	   return false;
	}
	if (modeType=="cc"){
		if (chk1.x_Amount.value=="0.00" && chk1.x_Usd.value=="0.00"){
		   alert ("Please Enter Amount");
		   chk1.x_Amount.focus();
		   return false;
		}
		if (chk1.x_Amount.value != "0.00" && chk1.x_Usd.value !="0.00"){
		   alert ("Please Enter One Amount (INR or USD)");
		   chk1.x_Amount.focus();
		   return false;
		}
		if (chk1.x_Amount.value != "0.00" && !parseFloat(chk1.x_Amount.value)){
		   alert("Amount can be Numeric and with two decimal values");
		   chk1.x_Amount.value="";
		   chk1.x_Amount.focus();
		   return false;
		}
		if (chk1.x_Usd.value != "0.00" && !parseFloat(chk1.x_Usd.value)){
		   alert("Amount can be Numeric and with two decimal values");
		   chk1.x_Usd.value="";
		   chk1.x_Usd.focus();
		   return false;
		}
	}
	if (modeType=="hdfc" || modeType=="icici") {
		if (chk1.x_Amount.value=="0.00" && chk1.x_Usd.value=="0.00"){
		   alert ("Please Enter Amount");
		   chk1.x_Amount.focus();
		   return false;
		}
		if (chk1.x_Amount.value != "0.00" && chk1.x_Usd.value !="0.00"){
		   alert ("Please Enter One Amount (INR or USD)");
		   chk1.x_Amount.focus();
		   return false;
		}
		if (chk1.x_Amount.value != "0.00" && !parseFloat(chk1.x_Amount.value)){
		   alert("Amount can be Numeric and with two decimal values");
		   chk1.x_Amount.value="";
		   chk1.x_Amount.focus();
		   return false;
		}
		if (chk1.x_Usd.value != "0.00" && !parseFloat(chk1.x_Usd.value)){
		   alert("Amount can be Numeric and with two decimal values");
		   chk1.x_Usd.value="";
		   chk1.x_Usd.focus();
		   return false;
		}
	}
	if (!chktrim(chk1.x_First_Name.value).length) {
	   alert ("Owners Name Required");
	   chk1.x_First_Name.focus();
	   return false;
	 }
	 if (!chktrim(chk1.x_company.value).length) {
	   alert ("Company Name Required");
	   chk1.x_company.focus();
	   return false;
	 }
	 
	if (!chktrim(chk1.x_address.value).length)  {
	    alert ("Street name required");
	    chk1.x_address.focus();
	    return false;
	 }
	
	if (!chk1.x_city.value.length)  {
	    alert ("City name required");
	    chk1.x_city.focus();
	    return false;
	 }
	 if (!chk1.x_zip.value.length) {
	    alert ("Postal Code required");
	    chk1.x_zip.focus();
	    return false;
	}
	
	if (!chk1.x_country.value.length)  {
	    alert ("Country name required");
	    chk1.x_country.focus();
	    return false;
	 }
	
   if (chktrim(chk1.x_email.value).length == 0) {
      alert("E-mail ID can't be left blank");
      chk1.x_email.focus();
      return false;
   }
   if (chk1.x_email.value.indexOf('@') == -1) {
      alert("Error in Email ID");
      chk1.x_email.focus();
      return false;
   }
   if (chk1.x_email.value.indexOf('.') == -1) {
      alert("Error in Email ID");
      chk1.x_email.value="";
      chk1.x_email.focus();
      return false;
   }
   if (chk1.x_email.value.indexOf('@') !=  chk1.x_email.value.lastIndexOf('@')) {
      alert("Please Specify One Email ID only");
      chk1.x_email.value="";
      chk1.x_email.focus();
      return false;
   }  	 
	 
   var total_chk=chk1.elements.length;
   var c=0;
   
   for(i=0;i<total_chk;i++){
	   if(chk1.elements[i].type == "radio" && chk1.elements[i].checked == 1){
			c = 1;
		}
	}
	if(c == 0){
		alert("Please check Your Mode Of Payment");
		return false;
	}
	if(!chk1.terms.checked){
		alert("You Must Agree the to the Terms & Conditions.\n");
		chk1.terms.focus();
		return false;
	}
}
//Dedicated Servers Order Form Validation
function payment_form_valid(chk1){
	var total_chk1=chk1.elements.length;
   var c1=0;
   
   for(j=0;j<total_chk1;j++){
	  if(chk1.elements[j].checked == 1){
			c1 = 1;
		}
    }
    if(c1 == 0){
		 alert("Please Select Your Operating System");
		 return false;
    }
    if (!chktrim(chk1.x_First_Name.value).length) {
	   alert ("Owners Name Required");
	   chk1.x_First_Name.focus();
	   return false;
	 }
	 if (!chktrim(chk1.x_company.value).length) {
	   alert ("Company Name Required");
	   chk1.x_company.focus();
	   return false;
	 }
	 
	if (!chktrim(chk1.x_address.value).length)  {
	    alert ("Street name required");
	    chk1.x_address.focus();
	    return false;
	 }
	
	if (!chk1.x_city.value.length)  {
	    alert ("City name required");
	    chk1.x_city.focus();
	    return false;
	 }
	 if (!chk1.x_zip.value.length) {
	    alert ("Postal Code required");
	    chk1.x_zip.focus();
	    return false;
	}
	
	if (!chk1.x_country.value.length)  {
	    alert ("Country name required");
	    chk1.x_country.focus();
	    return false;
	 }
	
   if (chktrim(chk1.x_email.value).length == 0) {
      alert("E-mail ID can't be left blank");
      chk1.x_email.focus();
      return false;
   }
   if (chk1.x_email.value.indexOf('@') == -1) {
      alert("Error in Email ID");
      chk1.x_email.focus();
      return false;
   }
   if (chk1.x_email.value.indexOf('.') == -1) {
      alert("Error in Email ID");
      chk1.x_email.focus();
      return false;
   }
   if (chk1.x_email.value.indexOf('@') !=  chk1.x_email.value.lastIndexOf('@')) {
      alert("Please Specify One Email ID only");
      chk1.x_email.focus();
      return false;
   }  	 
	 
   var total_chk=chk1.elements.length;
   var c=0;
   
   for(i=0;i<total_chk;i++){
	  if(chk1.elements[i].type == "radio"){ 
		  if(chk1.elements[i].checked == 1){
				c = 1;
		  }
	  }
	 }
    if(c == 0){
		 alert("Please check Your Mode Of Payment");
		 return false;
    }
    if(!chk1.terms.checked){
		alert("You Must Agree the to the Terms & Conditions.\n");
		chk1.terms.focus();
		return false;
	 }
}
//Reffer to a Friend form Validation
function emailcheck(){
	var doc=document.friend;
	if(!doc.email.value.length){
		alert("Please enter the friend's emailID first and then click on the button!!!");
		doc.email.focus();	
		return false;
	}
	if(doc.email.value.indexOf("@")== -1 || doc.email.value.indexOf(".")== -1){
		alert("Please enter the friend's emailID correctly and then click on the button!!!");
		doc.email.value="";
		doc.email.focus();	
		return false;
	}
	openwin('http://weblinkindia.net/sendmail.html?email=doc.email','300','100');	
}
//Used for Translator
function translator(pattern){
	var open_in_same_window = 1;
	var my_location = unescape(document.location.toString());
	var new_location ='';
	var new_pattern = '';
	if (my_location.indexOf('translate_c?') != -1){
		/// From google...
		var indexof_u = my_location.indexOf('u=');
		if (indexof_u == -1){
			new_location = document.location;
		}
		else{
			var subs = my_location.substring(indexof_u, my_location.length);
			var ss = subs.split('&');
			new_location = ss[0].substring(2, ss[0].length);
		}
	}
	else{
		new_location = document.location;
	}
	indexof_p = pattern.indexOf('|');
	var isen = '';
	if (indexof_p == -1){
		indexof_p1 = pattern.indexOf('><');
		if (indexof_p1 == -1){
			new_pattern = pattern;
			if (pattern == 'en'){
				isen = 1;
			}
		}
		else{
			var psplit =pattern.split('><');
			new_pattern = psplit[0]+'|'+psplit[1];
			if (psplit[1] == 'en'){
				isen = 1;
			}
		}
	}
	else{
		var psplit = pattern.split('|');
		new_pattern = psplit[0]+'|'+psplit[1];
		if(psplit[1] == 'en'){
			isen = 1;
		}
	}
	var thisurl = '';
	if(isen == 1){
		thisurl = new_location;
	}
	else{
		thisurl = 'http://translate.google.com/translate_c?langpair=' + new_pattern + "&u=" + new_location;
	}
	if(open_in_same_window == 1){
		window.location.href = thisurl;
	}
	else{
		if(CanAnimate){
			msgWindow=window.open('' ,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
			msgWindow.focus();
			msgWindow.location.href = thisurl;
		}
		else{
			msgWindow=window.open(thisurl,'subwindow','toolbar=yes,location=yes,directories=yes,status=yes,scrollbars=yes,menubar=yes,resizable=yes,left=0,top=0');
		}
	}
}
//Countactus Form Validation
function concheck() { //checking contactus form
	if (chktrim(document.formn.Name.value).length == 0) {
  		alert("Please Enter Your Name\n");
   	document.formn.Name.focus();
   	return false;
  	}
	if (chktrim(document.formn.Phone.value).length == 0) {	
  		alert("Please Enter Your Phone\n");
   	document.formn.Phone.focus();
   	return false;
  }
  if (chktrim(document.formn.phone_time.value).length == 0) {	
  		alert("Please Enter Your Phone Timings\n");
   	document.formn.phone_time.focus();
   	return false;
  }
  if (chktrim(document.formn.Email.value).length == 0) {		
  	alert("Please Enter Your Email Address\n");
   document.formn.Email.focus();
   return false;
  }
  if (document.formn.Email.value.indexOf('@') == -1) {
     alert("Error in E-mail address");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Email.value.indexOf('.') == -1) {
     alert("Error in E-mail address");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Email.value.indexOf('@') != document.formn.Email.value.lastIndexOf('@')) {
     alert("Please Specify One E-mail address only");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Queryfor.value=="") {		
   	alert("Please select type of Query you want to do.\n");
   	document.formn.Queryfor.focus();
   	return false;
  }
  if (document.formn.message.value.indexOf('<') >=0 && document.formn.message.value.indexOf('>') >=0) {
     alert("Please don't use '<' or '>' signs in your Description\n");
     document.formn.message.value="";
     document.formn.message.focus();
     return false;
  }
}
//Feedback Form Validation
function feedcheck(){ //checking feedback form
	if (chktrim(document.formn.Name.value).length == 0) {
  		alert("Please Enter Your Name\n");
   	document.formn.Name.focus();
   	return false;
  	}
	if (chktrim(document.formn.Email.value).length == 0) {		
  	alert("Please Enter Your Email Address\n");
   document.formn.Email.focus();
   return false;
  }
  if (document.formn.Email.value.indexOf('@') == -1) {
     alert("Error in E-mail address");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Email.value.indexOf('.') == -1) {
     alert("Error in E-mail address");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (document.formn.Email.value.indexOf('@') != document.formn.Email.value.lastIndexOf('@')) {
     alert("Please Specify One E-mail address only");
     document.formn.Email.value="";
     document.formn.Email.focus();
     return false;
  }
  if (chktrim(document.formn.Phone.value).length == 0) {	
  		alert("Please Enter Your Phone\n");
   	document.formn.Phone.focus();
   	return false;
  }
 if(chktrim(document.formn.phone_time.value).length == 0) {	
  		alert("Please Enter Best time to call on Phone\n");
   	document.formn.phone_time.focus();
   	return false;
  }
  if(document.formn.Queryfor.value=="") {		
   	alert("Please select type of Comment/Suggestion you want to give.\n");
   	document.formn.Queryfor.focus();
   	return false;
  }
 if(chktrim(document.formn.mesage.value).length == 0) {
  		alert("Please enter your query message\n");
   	document.formn.message.focus();
   	return false;
  }
  if (document.formn.message.value.indexOf('<') >=0 && document.formn.message.value.indexOf('>') >=0) {
     alert("Please don't use HTML Tags in discription\n");
     document.formn.message.value="";
     document.formn.message.focus();
     return false;
  }
}
//Support Form Validation
function supportcheck(){
	if (chktrim(document.support_query.Name.value).length == 0) {
  		alert("Please Enter Your Name\n");
   	document.support_query.Name.focus();
   	return false;
  	}
	if (chktrim(document.support_query.Email.value).length == 0) {		
  	alert("Please Enter Your Email Address\n");
   document.support_query.Email.focus();
   return false;
  }
  if (document.support_query.Email.value.indexOf('@') == -1) {
     alert("Error in E-mail address");
     document.support_query.Email.value="";
     document.support_query.Email.focus();
     return false;
  }
  if (document.support_query.Email.value.indexOf('.') == -1) {
     alert("Error in E-mail address");
     document.support_query.Email.value="";
     document.support_query.Email.focus();
     return false;
  }
  if (document.support_query.Email.value.indexOf('@') != document.support_query.Email.value.lastIndexOf('@')) {
     alert("Please Specify One E-mail address only");
     document.support_query.Email.value="";
     document.support_query.Email.focus();
     return false;
  }
  if (chktrim(document.support_query.Phone.value).length == 0) {	
  		alert("Please Enter Your Phone\n");
   	document.support_query.Phone.focus();
   	return false;
  }
 if(chktrim(document.support_query.phone_time.value).length == 0) {	
  		alert("Please Enter Best time to call on Phone\n");
   	document.support_query.phone_time.focus();
   	return false;
  }
  if(document.support_query.Queryfor.value=="") {		
   	alert("Please select type of Comment/Suggestion you want to give.\n");
   	document.support_query.Queryfor.focus();
   	return false;
  }
  if(chktrim(document.support_query.mesage.value).length == 0) {
  		alert("Please enter your query message\n");
   	document.support_query.message.focus();
   	return false;
  }
  if (document.support_query.message.value.indexOf('<') >=0 && document.support_query.message.value.indexOf('>') >=0) {
     alert("Please don't use HTML Tags in discription\n");
     document.support_query.message.value="";
     document.support_query.message.focus();
     return false;
  }
}
//Quotation Form Validation
function quotecheck() { //checking quotation form
	if (chktrim(document.formn.fname.value).length == 0) {
		alert("Please Enter First Name\n");
	    document.formn.fname.focus();
	    return false;
	}
	if (chktrim(document.formn.lname.value).length == 0) {
	    alert("Please Enter Last Name \n");
	    document.formn.lname.focus();
	    return false;
	}
	  if (chktrim(document.formn.email.value).length == 0) {
	    alert("Please Enter Your Email Address \n");
	    document.formn.email.focus();
	    return false;
	  }
	
	  if (document.formn.email.value.indexOf('@') == -1) {
	    alert("Error in E-mail address");
	     document.formn.email.value="";
	    document.formn.email.focus();
	    return false;
	  }
	
	  if (document.formn.email.value.indexOf('.') == -1) {
	    alert("Error in E-mail address");
	    document.formn.email.value="";
	    document.formn.email.focus();
	    return false;
	  }
	
	  if (document.formn.email.value.indexOf('@') != document.formn.email.value.lastIndexOf('@')) {
	    alert("Please Specify One E-mail address only");
	    document.formn.email.focus();
	    return false;
	  }
	  if (chktrim(document.formn.ccode.value).length == 0) {
	    alert("Please Enter Your Area Code In Phone Number\n");
	    document.formn.ccode.focus();
	    return false;
	  }
	  if (chktrim(document.formn.office_phone.value).length == 0) {
	    alert("Please Enter Your Phone Number\n");
	    document.formn.office_phone.focus();
	    return false;
	  }
	  if(isNaN(document.formn.ccode.value && document.formn.office_phone.value)){
	    alert("Please Enter Your Phone Number In Number only\n");
	    document.formn.ccode.value="";
	    document.formn.office_phone.value="";
	    document.formn.ccode.focus();
	    return false;
	  }
	 if (chktrim(document.formn.org_name.value).length == 0) {
	    alert("Please Enter Your Company Name \n");
	    document.formn.org_name.focus();
	    return false;
	 }
	 if (chktrim(document.formn.address.value).length == 0) {
	    alert("Please Enter Your Address\n");
	    document.formn.address.focus();
	    return false;
	 }
	 if (chktrim(document.formn.city.value).length == 0) {
	    alert("Please Enter Your City\n");
	    document.formn.city.focus();
	    return false;
	 }
	 if (chktrim(document.formn.country.value).length == 0) {
	    alert("Please Enter Your Country\n");
	    document.formn.country.focus();
	    return false;
	 }
	 if (document.formn.qry_for.value=="") {
	    alert("Please select Query For and then submit\n");
	    document.formn.qry_for.focus();
	    return false;
	 }
	 if (document.formn.plan_to_start.value=="") {
	    alert("Please select Plans To Start From and then submit\n");
	    document.formn.plan_to_start.focus();
	    return false;
	 }
}
//Cpanel Manage Business Category form Validation
function checkinfo(){
	var doc=document.form2;
	if(!doc.catg_name.value.length){
		alert("Please enter the category name first.");	
		doc.catg_name.focus();
		return false;
	}
	if(!doc.description.value.length){
		alert("Please enter the description first.");	
		doc.description.focus();
		return false;
	}
	if(doc.catg_htm.value.indexOf('.') != -1){
		alert("Please don't use .htm  or .html at the end.");	
		doc.catg_htm.value="";
		doc.catg_htm.focus();
		return false;
	}
}
//Cpanel Manage Portfolio form Validation
function checkinfo1(){
	var doc=document.form3;
	if(!doc.com_name.value.length){
		alert("Please enter the company name first.");	
		doc.com_name.focus();
		return false;
	}
	if(!doc.url.value.length){
		alert("Please enter the website url first.");	
		doc.url.focus();
		return false;
	}
	if(!doc.company_profile.value.length){
		alert("Please enter the Company Profile first.");	
		doc.company_profile.focus();
		return false;
	}
	if(!doc.project_brief.value.length){
		alert("Please enter the Project Brief first.");	
		doc.project_brief.focus();
		return false;
	}
	if(!doc.made_in.value.length){
		alert("Please enter the Softwares Made In first.");	
		doc.project_brief.focus();
		return false;
	}
	if(!doc.tools_used.value.length){
		alert("Please enter the Languages/Database Used first.");	
		doc.tools_used.focus();
		return false;
	}
	if(doc.catg.value==""){
		alert("Please select the category first.");	
		doc.catg.focus();
		return false;
	}
	if(doc.country.value==""){
		alert("Please select the country type first.");	
		doc.country.focus();
		return false;
	}
}
//Dynamic Website Quotation Form Vlaidation
function check_mem1(){
	
	if(document.form11.template_no.value==""){
		alert("Please Select a template no.\n");
		document.form11.template_no.focus();
		return false;
	}
	for (var i=0; i < document.form11.domain_req.length; i++){
		if (document.form11.domain_req[i].checked){
			var rad_val = document.form11.domain_req[i].value;
		}
	}
	if(rad_val=="Yes" && document.form11.domain_name.value==""){
		alert("Please enter domain name of your choise\n");
		document.form11.domain_name.focus();
		return false;
	}
	
	if(!document.form11.fname.value.length) {
  		 alert("Please Enter Your First Name\n");
  	 	document.form11.fname.focus();
   		return false;
  	}
	if(!document.form11.lname.value.length) {
  		 alert("Please Enter Your Last Name\n");
  	 	document.form11.lname.focus();
   		return false;
  	}
  	
  	if(!document.form11.org_nm.value.length) {
  	 alert("Please Enter Your Company Name\n");
  	 document.form11.org_nm.focus();
   	return false;
  		}
	
	if(!document.form11.add1.value.length) {
  	 alert("Please Enter Your Street Address\n");
  	 document.form11.add1.focus();
   	return false;
  		}

  	if(!document.form11.city.value.length) {
  	 alert("Please Enter Your City\n");
  	 document.form11.city.focus();
   	return false;
  		}
	
  	if(document.form11.country.value=="") {
  	 alert("Please Enter Your Country\n");
  	 document.form11.country.focus();
   	return false;
  	}
	
  	if(document.form11.country.value=="India" && document.form11.state.value=="") {
  	 alert("Please Enter Your state\n");
  	 document.form11.state.focus();
   	return false;
  	}
	
  	if(!document.form11.pin_cd.value.length) {
  	 alert("Please Enter Your Zip Code\n");
  	 document.form11.pin_cd.focus();
   	return false;
  	}
   if(!document.form11.phone.value.length) {
  	 alert("Please Enter Your Phone No\n");
  	 document.form11.phone.focus();
   	return false;
  	} 	
 	if(!document.form11.email.value.length) {
  	 alert("Please Enter Your Email Id\n");
  	 document.form11.email.focus();
   	return false;
  	}
  	 
 	if (document.form11.email.value.indexOf('@') == -1) {
    alert("Error in E-mail address");
    document.form11.email.value="";
    document.form11.email.focus();
    return false;
  }
  if (document.form11.email.value.indexOf('.') == -1) {
    alert("Error in E-mail address");
    document.form11.email.value="";
    document.form11.email.focus();
    return false;
  }
  if (document.form11.email.value.indexOf('@') != document.form11.email.value.lastIndexOf('@')) {
    alert("Please Specify One E-mail address only");
    document.form11.email.value="";
    document.form11.email.focus();
    return false;
	}
    	if(!document.form11.pass.value.length) {
  	 alert("Please Enter Your Password\n");
  	 document.form11.pass.focus();
   	return false;
  	} 
  	
  	if(!document.form11.cpass.value.length) {
  	 alert("Please Enter Your Password Once again\n");
  	 document.form11.cpass.focus();
   	return false;
  	}
  	if(!document.form11.terms.checked){
		alert("You Must Agree the to the Terms & Conditions.\n");
		document.form11.terms.focus();
		return false;
	}
}
//Static Website Order Form Validation
function chkform(){
	if(!document.formn.name.value.length){
		alert("Please Enter Your Name\n");
		document.formn.name.focus();
		return false;
  }
  if (document.formn.org.value==""){
	  alert("Please Enter Your Organisation Name");
	  document.formn.org.focus();
	  return false;
	}
	if(!document.formn.natureBusiness.value.length){
		alert("Please Enter Your Nature of business\n");
		document.formn.natureBusiness.focus();
		return false;
	}
  	if(!document.formn.address.value.length) {
   		alert("Please Enter Your Address\n");
   		document.formn.address.focus();
   		return false;
  	}
   	if(!document.formn.country.value.length) {
   		alert("Please Enter Your country name\n");
   		document.formn.country.focus();
   		return false;
  	}
   	if(!document.formn.ccode.value.length) {
	   	alert("Please Enter Your Country Code\n");
   		document.formn.ccode.focus();
   		return false;
  	}
   	if(!document.formn.phone.value.length) {
		 alert("Please Enter Your Phone Number\n");
   		document.formn.phone.focus();
   		return false;
  }
  if(document.formn.email.value.indexOf('@') == -1){
	  alert("Error in E-mail address");
	  document.formn.email.value="";
	  document.formn.email.focus();
	  return false;
	}
	 if(document.formn.plan_to_start.value== ""){
	  alert("Please Select the  Plan To Start.");
	  document.formn.plan_to_start.focus();
	  return false;
	}
}
//For Server Order page only
function tabberObj(argsObj){
  var arg; /* name of an argument to override */

  /* Element for the main tabber div. If you supply this in argsObj,
     then the init() method will be called.
  */
  this.div = null;

  /* Class of the main tabber div */
  this.classMain = "tabber";

  /* Rename classMain to classMainLive after tabifying
     (so a different style can be applied)
  */
  this.classMainLive = "tabberlive";

  /* Class of each DIV that contains a tab */
  this.classTab = "tabbertab";

  /* Class to indicate which tab should be active on startup */
  this.classTabDefault = "tabbertabdefault";

  /* Class for the navigation UL */
  this.classNav = "tabbernav";

  /* When a tab is to be hidden, instead of setting display='none', we
     set the class of the div to classTabHide. In your screen
     stylesheet you should set classTabHide to display:none.  In your
     print stylesheet you should set display:block to ensure that all
     the information is printed.
  */
  this.classTabHide = "tabbertabhide";

  /* Class to set the navigation LI when the tab is active, so you can
     use a different style on the active tab.
  */
  this.classNavActive = "tabberactive";

  /* Elements that might contain the title for the tab, only used if a
     title is not specified in the TITLE attribute of DIV classTab.
  */
  this.titleElements = ['h2','h3','h4','h5','h6'];

  /* Should we strip out the HTML from the innerHTML of the title elements?
     This should usually be true.
  */
  this.titleElementsStripHTML = true;

  /* If the user specified the tab names using a TITLE attribute on
     the DIV, then the browser will display a tooltip whenever the
     mouse is over the DIV. To prevent this tooltip, we can remove the
     TITLE attribute after getting the tab name.
  */
  this.removeTitle = true;

  /* If you want to add an id to each link set this to true */
  this.addLinkId = false;

  /* If addIds==true, then you can set a format for the ids.
     <tabberid> will be replaced with the id of the main tabber div.
     <tabnumberzero> will be replaced with the tab number
       (tab numbers starting at zero)
     <tabnumberone> will be replaced with the tab number
       (tab numbers starting at one)
     <tabtitle> will be replaced by the tab title
       (with all non-alphanumeric characters removed)
   */
  this.linkIdFormat = '<tabberid>nav<tabnumberone>';

  /* You can override the defaults listed above by passing in an object:
     var mytab = new tabber({property:value,property:value});
  */
  for (arg in argsObj) { this[arg] = argsObj[arg]; }

  /* Create regular expressions for the class names; Note: if you
     change the class names after a new object is created you must
     also change these regular expressions.
  */
  this.REclassMain = new RegExp('\\b' + this.classMain + '\\b', 'gi');
  this.REclassMainLive = new RegExp('\\b' + this.classMainLive + '\\b', 'gi');
  this.REclassTab = new RegExp('\\b' + this.classTab + '\\b', 'gi');
  this.REclassTabDefault = new RegExp('\\b' + this.classTabDefault + '\\b', 'gi');
  this.REclassTabHide = new RegExp('\\b' + this.classTabHide + '\\b', 'gi');

  /* Array of objects holding info about each tab */
  this.tabs = new Array();

  /* If the main tabber div was specified, call init() now */
  if (this.div) {

    this.init(this.div);

    /* We don't need the main div anymore, and to prevent a memory leak
       in IE, we must remove the circular reference between the div
       and the tabber object. */
    this.div = null;
  }
}


/*--------------------------------------------------
  Methods for tabberObj
  --------------------------------------------------*/


tabberObj.prototype.init = function(e)
{
  /* Set up the tabber interface.

     e = element (the main containing div)

     Example:
     init(document.getElementById('mytabberdiv'))
   */

  var
  childNodes, /* child nodes of the tabber div */
  i, i2, /* loop indices */
  t, /* object to store info about a single tab */
  defaultTab=0, /* which tab to select by default */
  DOM_ul, /* tabbernav list */
  DOM_li, /* tabbernav list item */
  DOM_a, /* tabbernav link */
  aId, /* A unique id for DOM_a */
  headingElement; /* searching for text to use in the tab */

  /* Verify that the browser supports DOM scripting */
  if (!document.getElementsByTagName) { return false; }

  /* If the main DIV has an ID then save it. */
  if (e.id) {
    this.id = e.id;
  }

  /* Clear the tabs array (but it should normally be empty) */
  this.tabs.length = 0;

  /* Loop through an array of all the child nodes within our tabber element. */
  childNodes = e.childNodes;
  for(i=0; i < childNodes.length; i++) {

    /* Find the nodes where class="tabbertab" */
    if(childNodes[i].className &&
       childNodes[i].className.match(this.REclassTab)) {
      
      /* Create a new object to save info about this tab */
      t = new Object();
      
      /* Save a pointer to the div for this tab */
      t.div = childNodes[i];
      
      /* Add the new object to the array of tabs */
      this.tabs[this.tabs.length] = t;

      /* If the class name contains classTabDefault,
	 then select this tab by default.
      */
      if (childNodes[i].className.match(this.REclassTabDefault)) {
	defaultTab = this.tabs.length-1;
      }
    }
  }

  /* Create a new UL list to hold the tab headings */
  DOM_ul = document.createElement("ul");
  DOM_ul.className = this.classNav;
  
  /* Loop through each tab we found */
  for (i=0; i < this.tabs.length; i++) {

    t = this.tabs[i];

    /* Get the label to use for this tab:
       From the title attribute on the DIV,
       Or from one of the this.titleElements[] elements,
       Or use an automatically generated number.
     */
    t.headingText = t.div.title;

    /* Remove the title attribute to prevent a tooltip from appearing */
    if (this.removeTitle) { t.div.title = ''; }

    if (!t.headingText) {

      /* Title was not defined in the title of the DIV,
	 So try to get the title from an element within the DIV.
	 Go through the list of elements in this.titleElements
	 (typically heading elements ['h2','h3','h4'])
      */
      for (i2=0; i2<this.titleElements.length; i2++) {
	headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0];
	if (headingElement) {
	  t.headingText = headingElement.innerHTML;
	  if (this.titleElementsStripHTML) {
	    t.headingText.replace(/<br>/gi," ");
	    t.headingText = t.headingText.replace(/<[^>]+>/g,"");
	  }
	  break;
	}
      }
    }

    if (!t.headingText) {
      /* Title was not found (or is blank) so automatically generate a
         number for the tab.
      */
      t.headingText = i + 1;
    }

    /* Create a list element for the tab */
    DOM_li = document.createElement("li");

    /* Save a reference to this list item so we can later change it to
       the "active" class */
    t.li = DOM_li;

    /* Create a link to activate the tab */
    DOM_a = document.createElement("a");
    DOM_a.appendChild(document.createTextNode(t.headingText));
    DOM_a.href = "javascript:void(null);";
    DOM_a.title = t.headingText;
    DOM_a.onclick = this.navClick;

    /* Add some properties to the link so we can identify which tab
       was clicked. Later the navClick method will need this.
    */
    DOM_a.tabber = this;
    DOM_a.tabberIndex = i;

    /* Do we need to add an id to DOM_a? */
    if (this.addLinkId && this.linkIdFormat) {

      /* Determine the id name */
      aId = this.linkIdFormat;
      aId = aId.replace(/<tabberid>/gi, this.id);
      aId = aId.replace(/<tabnumberzero>/gi, i);
      aId = aId.replace(/<tabnumberone>/gi, i+1);
      aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, ''));

      DOM_a.id = aId;
    }

    /* Add the link to the list element */
    DOM_li.appendChild(DOM_a);

    /* Add the list element to the list */
    DOM_ul.appendChild(DOM_li);
  }

  /* Add the UL list to the beginning of the tabber div */
  e.insertBefore(DOM_ul, e.firstChild);

  /* Make the tabber div "live" so different CSS can be applied */
  e.className = e.className.replace(this.REclassMain, this.classMainLive);

  /* Activate the default tab, and do not call the onclick handler */
  this.tabShow(defaultTab);

  /* If the user specified an onLoad function, call it now. */
  if (typeof this.onLoad == 'function') {
    this.onLoad({tabber:this});
  }

  return this;
};


tabberObj.prototype.navClick = function(event)
{
  /* This method should only be called by the onClick event of an <A>
     element, in which case we will determine which tab was clicked by
     examining a property that we previously attached to the <A>
     element.

     Since this was triggered from an onClick event, the variable
     "this" refers to the <A> element that triggered the onClick
     event (and not to the tabberObj).

     When tabberObj was initialized, we added some extra properties
     to the <A> element, for the purpose of retrieving them now. Get
     the tabberObj object, plus the tab number that was clicked.
  */

  var
  rVal, /* Return value from the user onclick function */
  a, /* element that triggered the onclick event */
  self, /* the tabber object */
  tabberIndex, /* index of the tab that triggered the event */
  onClickArgs; /* args to send the onclick function */

  a = this;
  if (!a.tabber) { return false; }

  self = a.tabber;
  tabberIndex = a.tabberIndex;

  /* Remove focus from the link because it looks ugly.
     I don't know if this is a good idea...
  */
  a.blur();

  /* If the user specified an onClick function, call it now.
     If the function returns false then do not continue.
  */
  if (typeof self.onClick == 'function') {

    onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event};

    /* IE uses a different way to access the event object */
    if (!event) { onClickArgs.event = window.event; }

    rVal = self.onClick(onClickArgs);
    if (rVal === false) { return false; }
  }

  self.tabShow(tabberIndex);

  return false;
};


tabberObj.prototype.tabHideAll = function()
{
  var i; /* counter */

  /* Hide all tabs and make all navigation links inactive */
  for (i = 0; i < this.tabs.length; i++) {
    this.tabHide(i);
  }
};


tabberObj.prototype.tabHide = function(tabberIndex)
{
  var div;

  if (!this.tabs[tabberIndex]) { return false; }

  /* Hide a single tab and make its navigation link inactive */
  div = this.tabs[tabberIndex].div;

  /* Hide the tab contents by adding classTabHide to the div */
  if (!div.className.match(this.REclassTabHide)) {
    div.className += ' ' + this.classTabHide;
  }
  this.navClearActive(tabberIndex);

  return this;
};


tabberObj.prototype.tabShow = function(tabberIndex)
{
  /* Show the tabberIndex tab and hide all the other tabs */

  var div;

  if (!this.tabs[tabberIndex]) { return false; }

  /* Hide all the tabs first */
  this.tabHideAll();

  /* Get the div that holds this tab */
  div = this.tabs[tabberIndex].div;

  /* Remove classTabHide from the div */
  div.className = div.className.replace(this.REclassTabHide, '');

  /* Mark this tab navigation link as "active" */
  this.navSetActive(tabberIndex);

  /* If the user specified an onTabDisplay function, call it now. */
  if (typeof this.onTabDisplay == 'function') {
    this.onTabDisplay({'tabber':this, 'index':tabberIndex});
  }

  return this;
};

tabberObj.prototype.navSetActive = function(tabberIndex)
{
  /* Note: this method does *not* enforce the rule
     that only one nav item can be active at a time.
  */

  /* Set classNavActive for the navigation list item */
  this.tabs[tabberIndex].li.className = this.classNavActive;

  return this;
};


tabberObj.prototype.navClearActive = function(tabberIndex)
{
  /* Note: this method does *not* enforce the rule
     that one nav should always be active.
  */

  /* Remove classNavActive from the navigation list item */
  this.tabs[tabberIndex].li.className = '';

  return this;
};


/*==================================================*/


function tabberAutomatic(tabberArgs)
{
  /* This function finds all DIV elements in the document where
     class=tabber.classMain, then converts them to use the tabber
     interface.

     tabberArgs = an object to send to "new tabber()"
  */
  var
    tempObj, /* Temporary tabber object */
    divs, /* Array of all divs on the page */
    i; /* Loop index */

  if (!tabberArgs) { tabberArgs = {}; }

  /* Create a tabber object so we can get the value of classMain */
  tempObj = new tabberObj(tabberArgs);

  /* Find all DIV elements in the document that have class=tabber */

  /* First get an array of all DIV elements and loop through them */
  divs = document.getElementsByTagName("div");
  for (i=0; i < divs.length; i++) {
    
    /* Is this DIV the correct class? */
    if (divs[i].className &&
	divs[i].className.match(tempObj.REclassMain)) {
      
      /* Now tabify the DIV */
      tabberArgs.div = divs[i];
      divs[i].tabber = new tabberObj(tabberArgs);
    }
  }
  
  return this;
}


/*==================================================*/


function tabberAutomaticOnLoad(tabberArgs)
{
  /* This function adds tabberAutomatic to the window.onload event,
     so it will run after the document has finished loading.
  */
  var oldOnLoad;

  if (!tabberArgs) { tabberArgs = {}; }

  /* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */

  oldOnLoad = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = function() {
      tabberAutomatic(tabberArgs);
    };
  } else {
    window.onload = function() {
      oldOnLoad();
      tabberAutomatic(tabberArgs);
    };
  }
}


/*==================================================*/


/* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */

if (typeof tabberOptions == 'undefined') {

    tabberAutomaticOnLoad();

} else {

  if (!tabberOptions['manualStartup']) {
    tabberAutomaticOnLoad(tabberOptions);
  }

}
/*For Server Order page only*/
/*For Live Chat only*/
function live_chat(){
	openwin('http://zebra.livechatnow.com/js/enter.php?url=&refer=&name=&email=&dir=&skin=&flag_os=&survey=&survey_lm=&survey_ec=&user=&uid=&sid=&cid=6204&op=&ip=&group=General&q=&track=363761672995855041188384485218&onlinechat=0','500','300');
}
