function createXMLHttpRequest(){
  try { return  new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
  try { return  new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
  try { return  new XMLHttpRequest(); } catch(e) {}
  alert("XMLHttpRequest not supported");
  return null;
}

function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}

