var JSwindows = new Array();

function newWin(url) {
   if (arguments[2]) 
     var width = arguments[2];
   else 
     var width = window.innerWidth ? window.innerWidth : document.body.clientWidth;
   args = arguments[1] ? "width="+ width +",height="+ Math.round(width * 0.75) +",toolbars=1,scrollbars=1,menubar=1,directories=1,dependent=1,location=1,resizable=1,titlebar=1,status=1" :
                 "width="+ Math.round(width) +",height="+ Math.round(width * 0.75) +",toolbars=0,scrollbars=1,menubar=0,directories=0,dependent=1,location=0,resizable=1,titlebar=0,status=0";
   JSwindows[JSwindows.length] = window.open(url, "window"+ JSwindows.length, args);
}

function reloader() {
   str = document.location;
   document.location = str;
}
