// JavaScript Document

function popup(thefile)
{
	var w;
	var h;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	var popW = 600, popH = 400;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	appString = "height=" + popH + "," + "width=" + popW + "," + "alwaysRaised=yes" + "," + "scrollbars=yes" + "," + "status=no" + "," + "toolbar= no" + "," + "resizable=yes"; //Set up the Dialogue window
	newWin = window.open(thefile, "Window1", appString); //Call the Window open 
	newWin.moveTo(leftPos,topPos);
	newWin.focus()
}

function popup_image(thefile)
{
	
	var w;
	var h;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	var popW = 550, popH = 500;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	appString = "height=" + popH + "," + "width=" + popW + "," + "alwaysRaised=yes" + "," + "scrollbars=no" + "," + "status=no" + "," + "toolbar= no" + "," + "resizable=yes"; //Set up the Dialogue window
	newWin_IMAGE = window.open(thefile, "Window2", appString); //Call the Window open 
	newWin_IMAGE.moveTo(leftPos,topPos);
	newWin_IMAGE.focus()
}


function showthis(theimage)
{
	var w;
	var h;
	if (document.all || document.layers) {
	   w = screen.availWidth;
	   h = screen.availHeight;
	}
	var popW = 670, popH = 550;
	var leftPos = (w-popW)/2, topPos = (h-popH)/2;
	appString = "height=" + popH + "," + "width=" + popW + "," + "alwaysRaised=yes" + "," + "scrollbars=no" + "," + "status=no" + "," + "toolbar= no" + "," + "resizable=yes"; //Set up the Dialogue window
	newWin = window.open("image_view.htm?image=" + theimage, "Window1", appString); //Call the Window open 
	newWin.moveTo(leftPos,topPos);
}
