function popUp(url,w,h,name,resizable,scrollbar,menu,tool,status,directories,x,y){
    this.strUrl = url;
    //x and y for window screen position not required at the moment
    this.intX = x;
    this.intY = y;
    this.strName = "win_"+name;
    this.strResizable = (resizable=="yes" || resizable==1) ? "resizable=yes" : "";
    this.strScroll = (scrollbar=="yes" || scrollbar==1) ? "scrollbars=yes" : "";
    this.strMenu = (menu=="yes" || menu==1) ? "menubar=yes" : "";
    this.strTool = (tool=="yes" || tool==1) ? "toolbar=yes" : "";
    this.strStatus = (status=="yes" || status==1) ? "status=yes" : "";
    this.strDirectories = (directories=="yes" || directories==1) ? "directories=yes" : "";
    this.intW = (!isNaN(w)) ? "width="+w: "";
    this.intH = (!isNaN(h)) ? "height="+h: "";
    
    this.arrOptions = new Array(this.strResizable,this.strScroll,this.strMenu,this.strTool,this.strStatus,this.strDirectories,this.intW,this.intH);
    this.strOptions = "";
    
    //build the options
    for(var i=0;i<this.arrOptions.length;i++){
        if(this.arrOptions[i].length>0){
            this.strOptions+=this.arrOptions[i]+",";
        }
    }
    //remove any trailing ","
    if(this.strOptions.length>0){
        this.strOptions=this.strOptions.substring(0,this.strOptions.length-1);
    }
    
    this.win=window.open(this.strUrl,this.strName,this.strOptions);
    this.win.focus();
}
function genPopUp(url,w,h,name,resizable,scrollbar,menu,tool,status,directories,x,y){
    //no requirement to hold popups in global references at the moment
    new popUp(url,w,h,name,resizable,scrollbar,menu,tool,status,directories,x,y)
    return false;
}