function popUp(URL,pw,ph,scrollbar) {
	var pwx = parseFloat(pw);
	var scrollbarx = parseFloat(scrollbar);
	if (pwx) {
		pwx = pwx + 30;
		if (scrollbarx) {
			pwx = pwx + 20;
			}
		}
	else {
		pwx = screen.width - 50;
		}
	var phx = parseFloat(ph);
	if (phx) {
		phx = phx + 66;
		if (scrollbarx) {
			phx = phx + 20;
			}
		}
	else {
		phx = screen.height - 50;
		}
	day = new Date();
	id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=" + scrollbarx + ",location=0,statusbar=0,menubar=0,resizable=1,width="+pwx+",innerWidth="+pwx+",height="+phx+",innerHeight="+phx+",left=0,screenX=0,top=0,screenY=0');");
	}
function docpopUp(URL) {
	day = new Date();
	id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,location=0,statusbar=0,menubar=0,resizable=1');");
	}
function docpopUp2(URL) {
	day = new Date();
	id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'scrollbars=1,toolbar=0,location=0,statusbar=0,menubar=0,resizable=1');");
	}
function popUpSlideShow(URL) {
	day = new Date();
	id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,left=0,screenX=0,top=0,screenY=0');");
//  eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=750,innerWidth=750,height=564,innerHeight=564,left=0,screenX=0,top=0,screenY=0');");
	}


	
