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_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_diary(URL,winName, Width, Height, Scroll){
  var top = (screen.height-Height)/2 ;
  var left = (screen.width -Width)/2 ;
  w = window.open(URL,'Loading','width=' + Width+',height='+Height+',screenX='+left+',screenY='+top+',left='+left+',top='+top+',status=yes,toolbar=yes,titlebar=yes,scrollbars='+Scroll+'');
}

function MM_annai(URL,winName, Width, Height, Scroll){
  var top = (screen.height-Height)/2 ;
  var left = (screen.width -Width)/2 ;
  w = window.open(URL,'Loading','width=' + Width+',height='+Height+',screenX='+left+',screenY='+top+',left='+left+',top='+top+',status=no,toolbar=no,titlebar=no,scrollbars='+Scroll+'');
}


function MM_urakichi(URL,winName, Width, Height, Scroll){
  var top = (screen.height-Height)/2 ;
  var left = (screen.width -Width)/2 ;
  w = window.open(URL,'Loading','width=' + Width+',height='+Height+',screenX='+left+',screenY='+top+',left='+left+',top='+top+',status=no,toolbar=no,titlebar=no,scrollbars='+Scroll+'');
}
