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() {
		var val = 0;
		for( i = 0; i < document.frmEnquiry.enquiryfor.length; i++ )
		{
			if( document.frmEnquiry.enquiryfor[i].checked == true )
				enquiryfor = document.frmEnquiry.enquiryfor[i].value;
		}
		fname=document.frmEnquiry.fname.value;
		mname=document.frmEnquiry.mname.value;
		lname=document.frmEnquiry.lname.value;
		contactno=document.frmEnquiry.contactno.value;
		nationality=document.frmEnquiry.nationality.value;
		email=document.frmEnquiry.email.value;
		propertyType=document.frmEnquiry.propertyType.value;		
		resType=document.frmEnquiry.resType.value;
		resSize=document.frmEnquiry.resSize.value;
		resRooms=document.frmEnquiry.resRooms.value;
		resPriceRange=document.frmEnquiry.resPriceRange.value;
		resRentals=document.frmEnquiry.resRentals.value;
		commType=document.frmEnquiry.commType.value;
		commSize=document.frmEnquiry.commSize.value;
		commPriceRange=document.frmEnquiry.commPriceRange.value;
		commRentals=document.frmEnquiry.commRentals.value;
		commBusinessHubs=document.frmEnquiry.commBusinessHubs.value;
		commBusinessHubs1=document.frmEnquiry.commBusinessHubs1.value;
		retailType=document.frmEnquiry.retailType.value;
		retailLocation=document.frmEnquiry.retailLocation.value;
		retailMHS=document.frmEnquiry.retailMHS.value;
		retailSize=document.frmEnquiry.retailSize.value;
		retailRentals=document.frmEnquiry.retailRentals.value;
		hospitalityType=document.frmEnquiry.hospitalityType.value;
		industrialType=document.frmEnquiry.industrialType.value;		
		institutionalType=document.frmEnquiry.institutionalType.value;
		entertainmentType=document.frmEnquiry.entertainmentType.value;
		entertainmentType1=document.frmEnquiry.entertainmentType1.value;
		
		
		var strURL="enquiry-next.asp?enquiryfor="+enquiryfor+"&fname="+fname+"&mname="+mname+"&lname="+lname+"&contactno="+contactno+"&nationality="+nationality+"&email="+email+"&propertyType="+propertyType+"&resType="+resType+"&resSize="+resSize+"&resRooms="+resRooms+"&resPriceRange="+resPriceRange+"&resPriceRange="+resPriceRange+"&resRentals="+resRentals+"&commType="+commType+"&commSize="+commSize+"&commPriceRange="+commPriceRange+"&commRentals="+commRentals+"&commBusinessHubs="+commBusinessHubs+"&commBusinessHubs1="+commBusinessHubs1+"&retailType="+retailType+"&retailLocation="+retailLocation+"&retailMHS="+retailMHS+"&retailSize="+retailSize+"&retailRentals="+retailRentals+"&hospitalityType="+hospitalityType+"&industrialType="+industrialType+"&entertainmentType="+entertainmentType+"&entertainmentType1="+entertainmentType1;
		
		// 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);
		}		
	}
	
	function getValGIT() {
		name=document.frmGIT.name.value;
		mobile=document.frmGIT.mobile.value;
		email=document.frmGIT.email.value;
		city=document.frmGIT.city.value;		
		query=document.frmGIT.query.value;
		
		var strURL="get-in-touch-next.asp?name="+name+"&mobile="+mobile+"&email="+email+"&city="+city+"&query="+query;
		
		// alert(strURL);
		var req = getXMLHTTP();		
		if (req) {			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('divSubGIT').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using selection");
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
	
	
	function getValNewsL() {
		emailNewsL=document.frmNewsL.emailNewsL.value;		
		var strURL="inc-NewsL-Next.asp?emailNewsL="+emailNewsL;
		
		// alert(strURL);
		var req = getXMLHTTP();		
		if (req) {			
			req.onreadystatechange = function() {
				if (req.readyState == 4) {
					// only if "OK"
					if (req.status == 200) {						
						document.getElementById('divNewsL').innerHTML=req.responseText;
					} else {
						alert("There was a problem while using selection");
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
		}		
	}
