function getElement(id) {
    return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null;
}

// JavaScript 
function LoadPage(page,usediv) {
        try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  
		catch (e) { alert("Error: Could not load page.");}      
        document.getElementById(usediv).innerHTML = 'Loading Page...';
		scroll(0,0);
        xmlhttp.onreadystatechange = function(){
                //Check page is completed and there were no problems.
                if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
                       //Write data returned to page
                       document.getElementById(usediv).innerHTML = xmlhttp.responseText;
                }
        }
        xmlhttp.open("GET", page);
        xmlhttp.send(null);
        return;
}

function LoadPageMsg(page,usediv) {
        try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  
		catch (e) { alert("Error: Could not load page.");}     
        document.getElementById(usediv).innerHTML = 'Sending...';    
        scroll(0,0);
        xmlhttp.onreadystatechange = function(){
                //Check page is completed and there were no problems.
                if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
                       //Write data returned to page
                       document.getElementById(usediv).innerHTML = xmlhttp.responseText;
                }
        }
        xmlhttp.open("GET", page);		
        xmlhttp.send(null);
        return ;
}

function Loading(page,usediv) {
        try {xmlhttp = window.XMLHttpRequest?new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");}  
		catch (e) { alert("Error: Could not load page.");}      
        document.getElementById(usediv).innerHTML = '';
		scroll(0,0);
        xmlhttp.onreadystatechange = function(){
                //Check page is completed and there were no problems.
                if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200)) {
                       //Write data returned to page
                       document.getElementById(usediv).innerHTML = xmlhttp.responseText;
                }
        }
        xmlhttp.open("GET", page);
        xmlhttp.send(null);
        return;
}

function disForm(n){
var a=document.getElementById(n); 
if(a.style.display=='none'){a.style.display='block';}
else a.style.display='none';
}