////''
/********************
these functions written by Kris Meister, kmeister@bluestranger.com
http://bluestranger.com
all for the public domain
********************/

function winpop(url,name,scll,w,h,lpos,tpos){

//if no left and top position set, it places it in the center of the desktop, or on old browser (no screen.width) it set it at 20X 40Y
 if(!lpos){lpos = (screen.width) ? (screen.width-w)/2 : 20;};
 if(!tpos){tpos = (screen.height) ? (screen.height-h)/2 : 40;};

name = window.open(url, "", "height="+h+", width="+w+", left="+lpos+"px, top="+tpos+"px,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars="+scll+",resizable=1");

if(name==null || typeof(name)=="undefined"){
   return true;
 } else {
   name.focus();
   return false;
 }
}