
function OLD_makePage(myimg, mycaption, myevent) {
//you don't have the t.inc BASE call here so have to add.

    myPage = window.open("","myPage","width=780,height=650,resizable,menubar=no,scrollbars,left=15,top=15");
    myPage.focus();
    myPage.document.open();
    myPage.document.write("<html><head><title>"+myevent+"</title>");
	myPage.document.write("<base href='http://sacc.fastmetrics.com/'>");
    myPage.document.write("<LINK href='../../../includes/sacc_stylesheet.css' type='text/css' rel=stylesheet title='SACC'>");
    myPage.document.write("</head>");

    myPage.document.write("<body onDblClick='self.close()'>");
    myPage.document.write("<font face='Verdana,Tahoma,Arial' size='2'>");
	//myPage.document.write("<p><center>"+myevent+"</center></p>");
	myPage.document.write("<table border=1 class='ftable' align='center' cellpadding='10' width='400px'>");

	myPage.document.write("<tr><td align='center'><img src='"+myimg+"'></td></tr>");
    myPage.document.write("<tr><td valign='top'>");
    myPage.document.write("<font face='Verdana,Arial' size='2'>");
	myPage.document.write(mycaption+"&nbsp;");
    myPage.document.write("</font></td></tr></table>");

    myPage.document.write("<p><center><form>");
    myPage.document.write("<input type=button value=\"Close This Window\" onClick=\"javascript:window.close();\">");
    myPage.document.write("</form></center></p>");
    myPage.document.write("</body></html>");
    myPage.document.close();
}

function makePage(myimg, mycaption, myevent, mynum, mywidth, myheight) {
	mywinwidth=parseInt(mywidth)+125;
	mywinheight=parseInt(myheight)+125;
	myPage = window.open("eventpage","myPage","width="+mywinwidth+",height="+mywinheight+",resizable=no,menubar=no,scrollbars,left=15,top=15");
    myPage.focus();
    myPage.document.open();

    myPage.document.write("<html><head><title>("+mynum+") "+myevent+"</title>");
	myPage.document.write("<base href='http://sacc.fastmetrics.com/'>");
    myPage.document.write("<LINK href='../../../includes/sacc_stylesheet.css' type='text/css' rel=stylesheet title='SACC'>");
	myPage.document.write("<style>");
	myPage.document.write("body{background-color:#333333;}");
	myPage.document.write("table.popimg{margin-left:50px;margin-right:50px;margin-top:25px;padding:0;}");
	myPage.document.write("td.popcaption{background-color:#ffffff;color:#000000;vertical-align:'top'}");
	myPage.document.write("td.popfoot{background-color:#333333;color:#ffffff;text-align:right;}");
	myPage.document.write("</style>");
    myPage.document.write("</head>");
    myPage.document.write("<body onClick='self.close()' onBlur='self.close()'>");

	myPage.document.write("<table class='popimg' align='center'>");
	myPage.document.write("<tr><td align='center' valign='top' width="+mywidth+"><img src='"+myimg+"'></td></tr>");
    myPage.document.write("<tr><td class='popcaption' width='"+mywidth+"'>"+mycaption+"&nbsp;</td></tr>");
	myPage.document.write("<tr><td class='popfoot'>CLOSE X</td></tr>");
    myPage.document.write("</table>");
	//myPage.document.write("<p class='popfoot'>CLOSE X&nbsp;&nbsp;</p>");

    myPage.document.write("</body></html>");
    myPage.document.close();
}
