// The popup function pops up pop up windows reliably ...
function popup(url,w,h) {
	// tease out the file name without extention to use as a window name
	lastslash = url.lastIndexOf("/");
	if (lastslash == -1) lastslash = 0;
	firstdot = url.indexOf(".");
    winame = url.substring(lastslash,firstdot);
    title = winame;
		

    	winparams = 'toolbar=0,location=0,directories=0,status=1,menubar=0,resizable=0,scrollbars=1,width=' + w + ',height=' + h  ;
        winame = open(url,winame,winparams);
        history.go(url);
        document.close()
        winame.focus();
	
    
}
