// JavaScript functions
// Creates a new window to show image. Used in conjunction with newwindow.php (though not necessarily)
function popUp(strURL) {
	newWin = window.open(
					  	strURL, 
						"newWin", 
						"resizable=yes,scrollbars=yes,left=0,top=0,width=800,height=600");
 	newWin.focus();
}
// like the above but the picture is opened to screen widht and height (almost)
function popUp1(strURL) { 
   availW = (screen.availWidth)?screen.availWidth:800;
	availH = (screen.availHeight)?screen.availHeight:600;
 	newWin = window.open(
					  	strURL, 
						"newWin", 
						"resizable=yes, scrollbars=yes,left=0,top=0,width="
						+ Math.round(availW-20)
						+", height="
						+Math.round(availH-60)
						);
 	newWin.focus();
}



