
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
var winheight=300
var winwidth=100
var pop=null
step=100;
function popswindows(url,name,width,height) 
{
if (!document.all)
 {
  if (!document.layers)
   {
    paramstp="height="+height+",width="+width+",top=10"+
    ",left=10,scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
    pop=window.open(url,name,paramstp);
    if (pop.focus){pop.focus();}
    return;
    }
   else
   {
    LeftPosition=(screen.width)?(screen.width-width)/2:100;
    TopPosition=(screen.height)?(screen.height-height)/2:100;
    paramstp="height="+height+",width="+width+",top="+TopPosition+
    ",left="+LeftPosition+",scrollbars=yes,location=no"+
    ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
    pop=window.open(url,name,paramstp);
    loadpos=height/2-40
        if(pop.focus){pop.focus();} 
    return;
   } 
 } 
   LeftPosition=(screen.width)?(screen.width-width)/2:100;
  TopPosition=(screen.height)?(screen.height-height)/2:100;
  paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+
  ",left="+LeftPosition+",scrollbars=yes,location=no"+
  ",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
  pop=window.open(url,name,paramstp);
 x = y = step
var z = 1

while (z < 200) {
pop.resizeBy (x, y)
z++;
}
 if(pop.focus){pop.focus();} 
}
