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() {
		fname=document.form1.fname.value;
		country=document.form1.country.value;
		telephone=document.form1.telephone.value;
		email=document.form1.email.value;
		coursename=document.form1.coursename.value;
		comments=document.form1.comments.value;
		
		var strURL="/submit-query-next.asp?fname="+fname+"&telephone="+telephone+"&email="+email+"&country="+country+"&comments="+comments;
	
		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 in selection");
					}
				}				
			}			
			req.open("GET", strURL, true);
			req.send(null);
			window.location="http://www.eurospeak.org.uk/contact-us_next.asp";
		}		
	}
	
