
<!--
//Opening a new window Starts Here
var win= null;
function NewWindow(mypage,myname,w,h,scroll,resize){
  var winl = (window.screen.width-w)/2;
  var wint = (window.screen.height-h)/2;
  var settings  ='height='+h+',';
      settings +='width='+w+',';
      settings +='top='+wint+',';
      settings +='left='+winl+',';
      settings +='scrollbars='+scroll+',';
      settings +='resizable='+resize+'';
  win=window.open(mypage,myname,settings);
  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
}


function MyInterest(){
		var objForm=document.contact;
		if(objForm.Interest.value=="Others"){
		objForm.OtherInterest.disabled=false;
		objForm.OtherInterest.focus();
		}
		else{
		objForm.OtherInterest.value="";
		objForm.OtherInterest.disabled=true;
		}
}

function CheckMe(){
		var flg=validateEmail("contact","Email","Please Enter Valid Email Address");
		if(flg)
		flg=validateBlank("contact","Interest","Please Select Your Interest in knowing GMI");
		if(flg){
				if(document.contact.Interest.value=="Others")
				flg=validateBlank("contact","OtherInterest","Please Select Your Interest in knowing GMI");
		}
		if(flg)
		flg=validateBlank("contact","Query","Please Enter Your Query");
		if(flg)
			return true;
		return false;
}

function validateBlank(formName,fieldName,msg){
       var     doc = "document."
       var input = eval(doc+formName+"."+fieldName+".value");

       var lenth = input.length ;
       var ctr=0 ;

       if(input==""){
               alert(msg);
               eval(doc+formName+"."+fieldName+".focus()")
               return false;
       }

       return true;
}

function validateEmail(formName,fieldName,msg){
       var doc = "document."
       str=eval(doc+formName+"."+fieldName+".value");
       var
filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
       if (filter.test(str)){return true;}
       else
       {
               alert(msg)
               eval(doc+formName+"."+fieldName+".select()")
               return false;
       }
}
//validation function for Request For Quote
function validatestep1(){
		var flg=validateBlank("step1","FName","Please Enter First Name");
		if(flg)
		flg=validateBlank("step1","LName","Please Enter Last Name");
		if(flg){
		flg=validateEmail("step1","Email","Please Enter valid Email Id");
		}
		if(flg)
		flg=validateBlank("step1","PhoneNo","Please Enter Phone No.");
		if(flg)
		flg=validateBlank("step1","Country","Please Select Country");
		if(flg)
			return true;
		return false;
}

function validatestep2(){
		var flg=validateBlank("step2","Telephone","Please Enter TelePhone No.");
		if(flg)
		flg=validateBlank("step2","Extention","Please Enter Extention");
		if(flg){
			if(document.step2.Messanger.value!="")
				flg=validateBlank("step2","MessangerID","Please Enter Messager Id");
		}
		if(flg)
			return true;
		return false;
}

function validatestep3(){
		var flg=validateBlank("step3","Association","Please Select Association.");
		if(flg){
			if(document.step3.Association.value=="Others")
				flg=validateBlank("step3","OtherAssociation","Please Enter Association");
		}
		if(flg)
			flg=validateBlank("step3","NatureOfQuery","Please Select NatureOfQuery");
		if(flg){
			if(document.step3.NatureOfQuery.value=="Others")
				flg=validateBlank("step3","OtherNatureOfQuery","Please Enter NatureOfQuery");
		}
		if(flg){
			flg=validateBlank("step3","TargetIndustry","Please Select TargetIndustry");
		}
		if(flg){
			if(document.step3.TargetIndustry.value=="Others")
				flg=validateBlank("step3","OtherTargetIndustry","Please Enter TargetIndustry");
		}
		if(flg)
			return true;
		return false;
}


function stringFilter1(input) 
 {     
     s = input.value;
     
     filteredValues = "~`'*!@#$%^&()_-+=|\?/:;<>,{}[]abcdefghijlkmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; 
    // Characters stripped out
     var i;
     var returnString = "";
     for (i = 0; i < s.length; i++)
       {  // Search through string and append to unfiltered values to returnString..
         var c = s.charAt(i);
         if (filteredValues.indexOf(c) == -1)
         {
            returnString += c;
         }
       }
   input.value = returnString;
}

function MyMessanger(){
		if(document.step2.Messanger.value==""){
				document.step2.MessangerID.disabled=true;

		}else{
				document.step2.MessangerID.disabled=false;
				document.step2.MessangerID.focus();
		}
}

function CheckOthersAssociation(){
		if(document.step3.Association.value=="Others"){
				document.step3.OtherAssociation.disabled=false;
				document.step3.OtherAssociation.focus();
		}else{
				document.step3.OtherAssociation.disabled=true;
		}
}

function CheckOthersNatureOfQuery(){
		if(document.step3.NatureOfQuery.value=="Others"){
				document.step3.OtherNatureOfQuery.disabled=false;
				document.step3.OtherNatureOfQuery.focus();
		}else{
				document.step3.OtherNatureOfQuery.disabled=true;
		}
}

function CheckOthersTargetIndustry(){
		if(document.step3.TargetIndustry.value=="Others"){
				document.step3.OtherTargetIndustry.disabled=false;
				document.step3.OtherTargetIndustry.focus();
		}else{
				document.step3.OtherTargetIndustry.disabled=true;
		}
}
//Opening a new window Ends Here
 -->
