
function PopupPic(sPicURL)
    {
	  window.open( "ViewLargeImage.asp?"+sPicURL, "","scrollbars,resizable=1,HEIGHT=200,WIDTH=200");
    }
	
function newWindow(img,title,w,h)
{
var day= new Date();
var id = day.getTime();
var ww = w+75; // Make room for scrollbars
var wh = h+125; // and a close button
var params = 'width='+ww+',height='+wh+',scrollbars,resizable';

// Build the output and store it all in msg
var msg='<html><head><title>'+img+'</title></head><body><h3 aligh="center">'+
title+'</h3>\n<div align="center"><img src="'+img+'" width="'+w+'" height="'+h+'" border="0" alt="'+title+'"><br>\n'+
'<hr width="100%" size="1"><form><input type="button" onclick="javascript:window.close();" value="Close Window"><br>\n'+
'<hr width="100%" size="1"></form></div><script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

</script>

<script type="text/javascript">

try {

var pageTracker = _gat._getTracker("UA-4731010-3");

pageTracker._trackPageview();

} catch(err) {}</script></body></html>\n';

// Write it all out
var win = open('',id,params);
win.document.write(msg);
win.document.close();
}

