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 getValTop() {
	    name = document.frmInquiryTop.Name.value;
	    email = document.frmInquiryTop.Email.value;
	    mobile = document.frmInquiryTop.Mobile.value;
	    country = document.frmInquiryTop.Country.value;
	    project = document.frmInquiryTop.Project.value;
	    pbudget = document.frmInquiryTop.Price.value;
		leadsource=document.frmInquiryTop.leadsource.value;
		leadsourcetype=document.frmInquiryTop.leadsourcetype.value;
		var strURL = "/inc-inquiry-top-form-next.asp?name=" + name + "&email=" + email + "&mobile=" + mobile + "&country=" + country + "&project=" + project + "&pbudget=" + pbudget + "&leadsource=" + leadsource + "&leadsourcetype=" + leadsourcetype;
		
		// alert(strURL);
		var req = getXMLHTTP();		
		if (req) {			
			req.onreadystatechange = function() {
				//alert(req.readyState);
				if (req.readyState == 4) {
					// only if "OK"
				//	alert(req.status);
					if (req.status == 200) {						
						document.getElementById('divgetValTop').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using selection");
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
	
	function getValBottom() {
	    txtname = document.frmInquiryBottom.Name.value;
	    txtemail = document.frmInquiryBottom.Email.value;
	    txtmobile = document.frmInquiryBottom.Mobile.value;
	    txtcountry = document.frmInquiryBottom.Country.value;
	    txtproject = document.frmInquiryBottom.Project.value;
	    txtpbudget = document.frmInquiryBottom.Price.value;
		txtleadsource=document.frmInquiryBottom.leadsource.value;
		txtleadsourcetype=document.frmInquiryBottom.leadsourcetype.value;
		var strURL="/inc-inquiry-bottom-form-next.asp?name="+txtname+"&email="+txtemail+"&mobile="+txtmobile+"&country="+txtcountry+"&project="+txtproject+"&pbudget="+txtpbudget+"&leadsource="+txtleadsource+"&leadsourcetype="+txtleadsourcetype;
		
		// alert(strURL);
		var req = getXMLHTTP();		
		if (req) {			
			req.onreadystatechange = function() {
				//alert(req.readyState);
				if (req.readyState == 4) {
					// only if "OK"
				//	alert(req.status);
					if (req.status == 200) {						
						document.getElementById('divgetValBottom').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using selection");
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
