function loadXMLDocDom(inp)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    document.getElementById("resultdiv").innerHTML=xmlhttp.responseText;
	    }
	  }

	if (inp==1)
	{
	alert(inp);
	var str = document.getElementById('domein').value;
	var type = document.getElementById('type').value;
	xmlhttp.open("GET","http://www.harbersict.nl/custom-includes/domeinregistratie/availability.php?domain="+str,true);
	xmlhttp.send();
	}
	else
	{

	alert(inp);

	var poststr = "&email=" + encodeURI( document.getElementById("email").value );

	alert(poststr);
	xmlhttp.open("POST","http://www.harbersict.nl/custom-includes/domeinregistratie/order.php",true);

	//Send the proper header information along with the request
	xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Content-length", poststr.length);
	xmlhttp.setRequestHeader("Connection", "close");
	xmlhttp.send(poststr);

	}

}


