 
 
 var xmlhttp
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
  try {
  xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")
 } catch (e) {
  try {
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
  } catch (E) {
   xmlhttp=false
  }
 }
@else
 xmlhttp=false
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 try {
  xmlhttp = new XMLHttpRequest();
 } catch (e) {
  xmlhttp=false
 }
}

 
 function calc() {
  //frm=document.forms[0]
  url="form2.php"
  var xmlMessage = buildPOST("contactform");
  
  xmlhttp.open("POST",url,true);
  xmlhttp.onreadystatechange=function() {
   if (xmlhttp.readyState==4) {
      document.getElementById("contactbody").innerHTML = xmlhttp.responseText;
   }
  }  
 xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 
 xmlhttp.send(xmlMessage)
 return false
}

function buildPOST(theFormName) {
    theForm = document.forms[theFormName];
    var qs = ''
    for (e=0;e<theForm.elements.length;e++) {
        if (theForm.elements[e].name!='') {
            var name = theForm.elements[e].name;
            qs+=(qs=='')?'':'&'
            qs+= name+'='+escape(theForm.elements[e].value);
        }
    }
    qs+="\n";
    return qs
}

// ###############################
// # Popup                       #
// ###############################

document.onclick = autoHidePic;
var show = false;

function autoHidePic()
	{
		
		if (show) 
		{
			show = false;
			return;
		}
		if (document.getElementById('contact').style.visibility != "hidden") 
		{
			document.getElementById('contact').style.visibility = "hidden";
			document.getElementById('contact').style.visibility = "hidden";
		}
	}

function showForm()
    {
        this.document.getElementById('contact').style.visibility = "visible";
    }




