function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

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 ajaxUpdateHits(zahl) {
  var getdate = new Date();  //Used to prevent caching during ajax call
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","testing.php",true); //calling testing.php using POST method
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("txtname=" + zahl); //Posting txtname to PHP File
  }
}

function f_search(zahl) {
  var getdate = new Date();  //Used to prevent caching during ajax call
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","abc/lib/search.php",true); //calling testing.php using POST method
    xmlhttp.onreadystatechange  = handleServerResponse;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("autofield=" + zahl); //Posting txtname to PHP File
  }
}

function handleServerResponse() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("message").innerHTML=xmlhttp.responseText; //Update the HTML Form element 
     }
     else {
        alert("Error during AJAX call. Please try again");
     }
   }
}



function show_next(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponseX;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("next=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}
  
function show_prev(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponseX;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("prev=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}

function get_logos(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponseXX;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("logo=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}

function handleServerResponseXX() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("content_text_right").innerHTML=xmlhttp.responseText;
	   document.getElementById("progressBar").style.display = "none";
     }
     else {
        alert("Error during AJAX call. Please try again");
     }
   }
}


function getref(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponseXXX;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("ref=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}

function getref_X(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponseXXX;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("ref_X=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}

function imprint(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponse_get_commercial_text;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("imprint=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}

function get_commercial_text(zahl) {
  var getdate = new Date();
  if(xmlhttp) { 
  	var txtname = document.getElementById("txtname");
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = handleServerResponse_get_commercial_text;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("get_commercial_text=" + zahl);
	document.getElementById("progressBar").style.display = "block";
  }
}


function handleServerResponse_get_commercial_text() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("content_text_right").innerHTML=xmlhttp.responseText;
	   document.getElementById("progressBar").style.display = "none";
     }
     else {
        alert("Error during AJAX call. Please try again");
     }
   }
}


function handleServerResponseXXX() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("content_left_bit_X").innerHTML=xmlhttp.responseText;
	   document.getElementById("progressBar").style.display = "none";
     }
     else {
        alert("Error during AJAX call. Please try again");
     }
   }
}
 

function handleServerResponseX() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("bottom_innen").innerHTML=xmlhttp.responseText;
	   document.getElementById("progressBar").style.display = "none";
     }
   }
}




function guestbook_name() {
  var getdate = new Date();
  if(xmlhttp) { 
	gb_name = document.getElementById('guestbook_name').value;
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = Response_guestbook_name;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("guestbook_name=" + gb_name);
  }
}

function Response_guestbook_name() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("gb_name").innerHTML=xmlhttp.responseText;
     }
   }
}


function guestbook_message() {
  var getdate = new Date();
  if(xmlhttp) { 
	gb_message = document.getElementById('guestbook_message').value;
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = Response_guestbook_message;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("guestbook_message=" + gb_message);
  }
}

function Response_guestbook_message() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("gb_message").innerHTML=xmlhttp.responseText;
     }
   }
}


function guestbook_captcha() {
  var getdate = new Date();
  if(xmlhttp) { 
	gb_captcha = document.getElementById('guestbook_captcha').value;
    xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = Response_guestbook_captcha;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    xmlhttp.send("guestbook_captcha=" + gb_captcha);
  }
}

function Response_guestbook_captcha() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("gb_captcha").innerHTML=xmlhttp.responseText;
     }
   }
}

function guestbook_submit() {
  var getdate = new Date();
  if(xmlhttp) { 
	gb_name = document.getElementById('guestbook_name').value;
	gb_message = document.getElementById('guestbook_message').value;
	gb_captcha= document.getElementById('guestbook_captcha').value;
	xmlhttp.open("POST","loading.php",true);
    xmlhttp.onreadystatechange  = guestbook_submit_Response;
    xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	xmlhttp.send("guestbook_submit=0&guestbook_name=" + gb_name + "&guestbook_message=" + gb_message + "&guestbook_captcha=" + gb_captcha);
  }
}

function guestbook_submit_Response() {
   if (xmlhttp.readyState == 4) {
     if(xmlhttp.status == 200) {
       document.getElementById("content_text_right").innerHTML=xmlhttp.responseText;
     }
   }
}




