// POP UP WINDOW

//  Null parameters must be entered using '','', etc. if
//  you want to enter a parameter that lies beyond a null

//  EXAMPLE popup('web_page.htm','','','','myWin')
//  This passes the web_page as url, null for wsize,wpos,wscroll, myWin as wname

function PopWindow(url, wsize, wpos, wscroll, wname){
    
	var window_default_size = "width=525,height=550";
	var window_top_left = ",left=25,top=25";

	//var url = "PopGraphic.php?id="+page;

    if(!wname){
        wname= "popup";
    }    
    if(!wsize){
        wsize = window_default_size;
    }    
    if(!wpos){
        wpos = window_top_left;
    }
    if(!wscroll){
        wscroll = ",scrollbars=1";
    } else {
        wscroll = ",scrollbars=0";
    }
    wchrome = wsize + wpos + wscroll;
    //alert(wchrome);
    var myWinHandle = window.open(url, wname, wchrome);
    
} // E N D   p o p u p ( w p a g e ,   w s c r o l l . . .
