// JavaScript Document

function popup_window( url, id, width, height )
    {
       //extract the url parameters if any, and pass them to the called html
       var tempvar=document.location.toString(); // fetch the URL string
       var passedparams = tempvar.lastIndexOf("?");
       if(passedparams > -1)
          url += tempvar.substring(passedparams);
      popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + '' );
      popup.focus();
    }
	
function init() {
  if (mac&&msie) {
    if (document.miFeatures.offsetTop<document.miContent.offsetTop+30)
	  document.getElementById("divContent").style.height=document.miContent.offsetTop+150;
  }
  else if (!msie) {
	if (document.miFeatures.y<document.miContent.y-140)
	  document.getElementById("divContent").style.height=document.miContent.y+30;
	else {
	  if (document.miFeatures.y+135>=window.innerHeight) {
	    document.getElementById("divContent").style.height=document.miFeatures.y+135;
	  }
	  else {
	    document.getElementById("divContent").style.height=window.innerHeight;
	  }
	}
  }
}