function getAjax(){
  var ajax=false; 
  try { 
   ajax = new ActiveXObject("Msxml2.XMLHTTP"); 
  } catch (e) { 
   try { 
    ajax = new ActiveXObject("Microsoft.XMLHTTP"); 
   } catch (E) { 
    ajax = false; 
   } 
  }
  if (!ajax && typeof XMLHttpRequest!='undefined') { 
   ajax = new XMLHttpRequest(); 
  } 
  return ajax;
 }
 
 function show(serverPage,objID){
  var objdiary = document.getElementById(objID);
  serverPage +="?"+Math.random();
  ajaxFri = getAjax();   
  ajaxFri.open("GET", serverPage, false); 
  ajaxFri.onreadystatechange = function() { 
   if (ajaxFri.readyState == 4 && ajaxFri.status == 200) { 
    var text = ajaxFri.responseText; 
    if(text!=0){
     objdiary.innerHTML=text;
    }
   } 
  } 
    ajaxFri.send(null); 
 }

// JavaScript Document
var subb=true;
function result()
{ //v3.0

var se=selection.menu1.selectedIndex;
var count=parseInt(se);
var thing=selection.menu1.options[count].value;
var text=selection.search.value;
if((text=="")&&(count!=0)){selection.search.value=thing;}
if((text=="")&&(count==0)){return false;}
return true;
}
//function submiting(){
//if(event.keycode==13){result();if(subb){ selection.submit();}}
//if(subb){selection.submit();}

//}
function dis(charger){
	charger.style.display="block";}
function clo(charger){
	charger.style.display="none";}
	
	
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

	

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
function appear(brand){
	if(brand.style.display=='none'){brand.style.display='block';}
	else if(brand.style.display=='block'){brand.style.display='none';}
}

	
	
