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.frmRequest.name.value;
		email=document.frmRequest.email.value;
		phone=document.frmRequest.phone.value;
		mobile=document.frmRequest.mobile.value;
		city=document.frmRequest.city.value;
		state=document.frmRequest.state.value;
		qproject=document.frmRequest.qproject.value;
		rproject=document.frmRequest.rproject.value;
		pbudget=document.frmRequest.pbudget.value;
		query=document.frmRequest.query.value;
		pro=document.frmRequest.pro.value;		
		var strURL="/enquiry-form-next.asp?name="+name+"&email="+email+"&phone="+phone+"&mobile="+mobile+"&city="+city+"&state="+state+"&qproject="+qproject+"&rproject="+rproject+"&pbudget="+pbudget+"&query="+query+"&pro="+pro;
		
		// 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);
		}		
	}
