function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function submitForm(){xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
var description = document.getElementById('description').value;
if(description)
{
	description = description;
}else
{
	description = '';
}
var url="send.php";url+="?"
url+="action=SendFormData";var parameters="tariffcode="+encodeURI(document.getElementById('tariffcode').value)+"&fullname="+encodeURI(document.getElementById('fullname').value)+"&email="+encodeURI(document.getElementById('email').value)+"&website="+encodeURI(document.getElementById('website').value)+"&phone="+encodeURI(document.getElementById('phone').value)+"&description="+encodeURI(description);xmlHttp.onreadystatechange=formResponse;xmlHttp.open('POST',url,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");xmlHttp.setRequestHeader("Content-length",parameters.length);xmlHttp.setRequestHeader("Connection","close");xmlHttp.send(parameters);}
function formResponse(){if(xmlHttp.readyState==4)
{document.getElementById("Result").innerHTML=xmlHttp.responseText;document.getElementById("Loader").style.display='none';}else{document.getElementById("Loader").style.display='inline';}}