function xmlhttpPost(strURL,formid){var xmlHttpReq=false;var self=this;if(window.XMLHttpRequest){self.xmlHttpReq=new XMLHttpRequest();}
else if(window.ActiveXObject){self.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP");}
self.xmlHttpReq.open('POST',strURL,true);self.xmlHttpReq.setRequestHeader('Content-Type','application/x-www-form-urlencoded');self.xmlHttpReq.onreadystatechange=function(){if(self.xmlHttpReq.readyState==4){updatepage(self.xmlHttpReq.responseText,formid);}}
self.xmlHttpReq.send(getquerystring(formid));}
function getquerystring(id){var form=document.getElementById(id);qstr='';for(i=0;i<form.length;i++)
{qstr+=form.elements[i].name+'='+escape(form.elements[i].value)+'&';}
return qstr;}
function updatepage(txt,id){document.getElementById("resultSection").innerHTML=txt;if(txt.indexOf('Your message has been sent')>-1)
{document.forms[id].style.display='none';}}
