// Ajah initializatiecode mozilla / msie e.d compatible


var req = null;
var timer = null;
var status = 0;
var IE = document.all?true:false;
var xmlhttp;
var postData;

function xmlhttpChange()
{

    if(xmlhttp.readyState == 4){
            if (xmlhttp.status == 200) {
    	        responseText = xmlhttp.responseText;

			// reset object (firefox gets recursize xmlhttpuests!)
			xmlhttp.onreadystatechange = new Function ("return true;");
			xmlhttp.abort();
			xmlhttp = null;

			status = 0;
			// execute javascriptcode from server:
		   	eval(responseText);
	    } else {
			window.status = "There was a problem retrieving data from the server:<BR>\n" + xmlhttp.statusText;
	    }
    }
}

function setPostData(name,value){
	postData = "&fname="+name+"&fvalue="+value;
}


function loadXMLDoc(url) {
    if (status == 1){ // delay request when queue is not ready yet.
        setTimeout("loadXMLDoc(\""+url+"\")",10);
		return false;
    }

    // code for Mozilla, etc.
    if (window.XMLHttpRequest) {
	xmlhttp=new XMLHttpRequest();
	xmlhttp.onreadystatechange=xmlhttpChange;
	xmlhttp.open("GET",url+postData,true);
	postData ='';
	xmlhttp.send(null);
    } else if (window.ActiveXObject)  {
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	if (xmlhttp)
        {
	    xmlhttp.onreadystatechange=xmlhttpChange;
	    status =1;
	    xmlhttp.open("GET",url+postData,true);
		postData ='';
	    xmlhttp.send();
        }
    }
}

function getXMLHTTP(){
  var A=null;
  try{
    A=new ActiveXObject("Msxml2.XMLHTTP")
  }catch(e){
    try{
      A=new ActiveXObject("Microsoft.XMLHTTP")
    } catch(oc){
      A=null
    }
  }
  if(!A && typeof XMLHttpRequest != "undefined") {
	A=new XMLHttpRequest();
    
    }
    return A;  
}

function Show(id){
	document.getElementById(id+'1').style.visibility = '';
	document.getElementById(id+'1').style.display = '';			
	document.getElementById(id+'2').style.visibility = '';
	document.getElementById(id+'2').style.display = '';			
	document.getElementById(id+'3').style.visibility = '';
	document.getElementById(id+'3').style.display = '';			

}

function Hide(id){
	document.getElementById(id+'1').style.visibility = 'hidden';
	document.getElementById(id+'1').style.display = 'none';			
	document.getElementById(id+'2').style.visibility = 'hidden';
	document.getElementById(id+'2').style.display = 'none';			
	document.getElementById(id+'3').style.visibility = 'hidden';
	document.getElementById(id+'3').style.display = 'none';			

}


