function load(url,name,width,height) {
 if(width>= self.screen.availWidth)
  width=self.screen.availWidth-25;
 if(height>=self.screen.availHeight)
  height=self.screen.availHeight-25;
 var load=window.open(url,name,'scrollbars=yes,menubar=no,height='+height+',width='+width+',resizeable=yes,toolbar=no,location=no,status=no');
 load.window.moveTo(0,0);
}

/* 
   Ref/Thanks to: http://www.quirksmode.org
   Modified by: Casey Hayes <casey@sundry-solutions.com>
*/
function reload(url,name,width,height) {
 var load=window.open(url,name,'scrollbars=yes,menubar=no,height='+height+',width='+width+',resizeable=yes,toolbar=no,location=no,status=no');
 if (self.innerWidth)
 {
  frameWidth = self.innerWidth;
  frameHeight = self.innerHeight;
 }
 else if (document.documentElement && document.documentElement.clientWidth)
 {
  frameWidth = document.documentElement.clientWidth;
  frameHeight = document.documentElement.clientHeight;
 }
 else if (document.body)
 {
  frameWidth = document.body.clientWidth;
  frameHeight = document.body.clientHeight;
 }
 else return;
 if(width>=self.screen.availWidth)
  width=self.screen.availWidth-25;
 if(height>=self.screen.availHeight)
  height=self.screen.availHeight-25;
 newWidth = width;
 newHeight = height;
 if (document.layers)
 {
  tmp1 = parent.outerWidth - parent.innerWidth;
  tmp2 = parent.outerHeight - parent.innerHeight;
  newWidth -= tmp1;
  newHeight -= tmp2;
 }
 width=(frameWidth-newWidth)*(-1);
 height=(frameHeight-newHeight)*(-1);
 parent.window.resizeBy(width,height);
 parent.window.moveTo(0,0);
}