// This content will be included in index.asp

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 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 MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function clickButton(e, buttonid)
{
      var evt = e ? e : window.event;
      var bt = document.getElementById(buttonid);
      if (bt)
      {
          if (evt.keyCode == 13)
          {
                bt.click();
                return false;
          }
      }
}
function KyyooLogin()
{
    document.data.action.value = "login";
    document.getElementById("data").submit();
}
function setSimpleSearch(subaction)
{
    document.data.action.value = "simplesearch";
    document.data.refreshsearch.value = "1";
    if (subaction != "" )
    {    
        
        document.data.subaction.value="SIMPLE_SEARCH_RESULT";}
    
    document.getElementById("data").submit();
}
function setAdvancedSearch(subaction)
{
    document.data.action.value = "advancedsearch";
    document.data.refreshsearch.value = "1";
    if (subaction != "" )
    { 
       
       document.data.subaction.value="ADVANCED_SEARCH_RESULT";
    }
    
    document.getElementById("data").submit();
}

function SimpleSearch()
{
    document.data.action.value = "simplesearch";
    document.data.subaction.value="SIMPLE_SEARCH_RESULT";
    document.getElementById("data").submit();    
}

function AdvancedSearch()
{
    document.data.action.value = "advancedsearch";
    document.data.subaction.value="ADVANCED_SEARCH_RESULT";
    document.getElementById("data").submit();    
}

function searchtype_change(subaction)
{
    document.data.action.value = "advancedsearch";
    if (subaction != "" )
    {         
       document.data.subaction.value="ADVANCED_SEARCH_RESULT";
    }
    
    document.getElementById("data").submit();
}



                                                
                                            
