
    /* 
        globals
        
        stuff that gets used on every page of the site, please name functions with the global_ prefix just
        so we don't run any risk of conflicting with any other libraries that may be loaded.
    */

    // popup window
    function global_popupWindow(url,win_name,w,h,s)
    {
        var str = "height=" + h + ",width=" + w;
    	
    	if(s)
    	{
    	    s = s == 0 ? '0' : '1'
    	    str += ",scrollbars=" + s;
    	}
    	
    	if(parseInt(navigator.appVersion)>3)
    	{
    		str += ",left="+(screen.width -w)/2+",top="+parseInt((screen.height -h)/3);
    	}
    	
    	regEx = /\s/g;
    	clean_name = win_name.replace(regEx,'_');
    	var win = window.open(url,clean_name,str);
    }
