function getXMLHTTP() { //fuction to return the xml http object
		var xmlhttp=false;	
		try{
			xmlhttp=new XMLHttpRequest();
		}
		catch(e)	{		
			try{			
				xmlhttp= new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch(e){
				try{
				req = new ActiveXObject("Msxml2.XMLHTTP");
				}
				catch(e1){
					xmlhttp=false;
				}
			}
		}	
		return xmlhttp;
    }

	function getVal() {
		name=document.form1.name.value;
		company=document.form1.company.value;
		phone=document.form1.phone.value;
		email=document.form1.email.value;
		country=document.form1.country.value;
		division=document.form1.division.value;
		product=document.form1.product.value;
		details=document.form1.details.value;
		strCAPTCHA=document.form1.strCAPTCHA.value;
		var strURL="/productEnquiry-next.asp?name="+name+"&company="+company+"&phone="+phone+"&email="+email+"&country="+country+"&division="+division+"&product="+product+"&details="+details+"&strCAPTCHA="+strCAPTCHA;
		
		// alert(strURL);
		var req = getXMLHTTP();		
		if (req) {			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('divSubQ').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using selection");
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
