var time_variable;
 
function getXMLObject()  //XML OBJECT
{
   var xmlHttp = false;
   try {
     xmlHttp = new ActiveXObject("Msxml2.XMLHTTP")  // For Old Microsoft Browsers
   }
   catch (e) {
     try {
       xmlHttp = new ActiveXObject("Microsoft.XMLHTTP")  // For Microsoft IE 6.0+
     }
     catch (e2) {
       xmlHttp = false   // No Browser accepts the XMLHTTP Object then false
     }
   }
   if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
     xmlHttp = new XMLHttpRequest();        //For Mozilla, Opera Browsers
   }
   return xmlHttp;  // Mandatory Statement returning the ajax object created
}
 
var xmlhttp = new getXMLObject();	//xmlhttp holds the ajax object




function fullname() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_name = document.getElementById('contact_name').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = fullnameResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("fullname=" + contact_name);
  }
}

function fullnameResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_name").innerHTML=xmlhttp.responseText;
     }
   }
}




function addy() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_addy = document.getElementById('contact_addy').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = addyResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("addy=" + contact_addy);
  }
}

function addyResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_addy").innerHTML=xmlhttp.responseText;
     }
   }
}




function country() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_country = document.getElementById('contact_country').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = countryResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("country2=" + contact_country);
  }
}

function countryResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_country").innerHTML=xmlhttp.responseText;
     }
   }
}




function zip() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_zip = document.getElementById('contact_zip').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = zipResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("zip=" + contact_zip);
  }
}

function zipResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_zip").innerHTML=xmlhttp.responseText;
     }
   }
}




function city() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_city = document.getElementById('contact_city').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = cityResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("city=" + contact_city);
  }
}

function cityResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_city").innerHTML=xmlhttp.responseText;
     }
   }
}




function company() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_company = document.getElementById('contact_company').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = companyResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("company=" + contact_company);
  }
}

function companyResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_company").innerHTML=xmlhttp.responseText;
     }
   }
}




function email() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_email = document.getElementById('contact_email').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = emailResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("email=" + contact_email);
  }
}

function emailResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_mail").innerHTML=xmlhttp.responseText;
     }
   }
}




function tel() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_tel = document.getElementById('contact_tel').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = telResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("tel=" + contact_tel);
  }
}

function telResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_tel").innerHTML=xmlhttp.responseText;
     }
   }
}




function fax() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_fax = document.getElementById('contact_fax').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = faxResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("fax=" + contact_fax);
  }
}

function faxResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_fax").innerHTML=xmlhttp.responseText;
     }
   }
}




function message() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_message = document.getElementById('contact_message').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = messageResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("message=" + contact_message);
  }
}

function messageResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_message").innerHTML=xmlhttp.responseText;
     }
   }
}




function captcha() {
  var getdate = new Date();
  if(xmlhttp) { 
  	contact_captcha = document.getElementById('contact_captcha').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = captchaResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("captcha=" + contact_captcha);
  }
}

function captchaResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("ok_captcha").innerHTML=xmlhttp.responseText;
     }
   }
}




function contact_use(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("use=" + zahl);
  }
}

function contact_medium(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("medium=" + zahl);
  }
}

function contact_licence(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("licence=" + zahl);
  }
}

function contact_circulation(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("circulation=" + zahl);
  }
}

function contact_payment(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("payment=" + zahl);
  }
}













function contact_submit() {
  var getdate = new Date();
  if(xmlhttp) { 
	zahl = document.getElementById('topform_submit').value;
	contact_email = document.getElementById('contact_email').value;
	contact_name = document.getElementById('contact_name').value;
	contact_addy = document.getElementById('contact_addy').value;
	contact_zip = document.getElementById('contact_zip').value;
	contact_city = document.getElementById('contact_city').value;
	contact_country = document.getElementById('contact_country').value;
	contact_company = document.getElementById('contact_company').value;
	contact_tel = document.getElementById('contact_tel').value;
	contact_fax = document.getElementById('contact_fax').value;
	contact_message = document.getElementById('contact_message').value;
	contact_captcha = document.getElementById('contact_captcha').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = submitResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("submit=" + zahl + "&fullname=" + contact_name + "&email=" + contact_email + "&addy=" + contact_addy + "&zip=" + contact_zip + "&city=" + contact_city + "&country2=" + contact_country + "&company=" + contact_company + "&tel=" + contact_tel + "&fax=" + contact_fax + "&message=" + contact_message + "&captcha=" + contact_captcha);
  }
}

function submitResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("contact_info").innerHTML=xmlhttp.responseText;
     }
   }
}