/////////////////////////////////////////////////////////////////////
// PopUp Function to Display Images in a seperate Page             //
// Written by John Dovey (john@justdone.co.za) for Young Heroes    //
// January 2006                                                    //
/////////////////////////////////////////////////////////////////////
// Example Usage:                                                  //

//<a href="<%=iUrl%>" target="_blank" onclick="goImgWin('<%=iUrl%>',<%=w+30%>,<%=h+30%>,100,50,'<%=titlebar%>'); return false;">
//<img src="<%=iUrl%>" width="200" height="165" alt="<%=PhotoAltText%>" align="Center" Border="0" /></a>

function goImgWin(myImage,myWidth,myHeight, origLeft,origTop,capt) {
var mh = myHeight + 44;
var mw = myWidth + 24;
TheImgWin = window.open('','image','height=' + mh + ',width=' + mw + ',toolbar=no,directories=no, status=no,' + 'menubar=no,scrollbars=yes,resizable=yes');
TheImgWin.resizeTo(mw+10,mh+75);
TheImgWin.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml 1-transitional.dtd"><html xmlns="http:\/\/www.w3.org\/1999\/xhtml">');
TheImgWin.document.write('<head><title>Young Heroes Photos<\/title><\/head>');
TheImgWin.document.write('<link rel="stylesheet" type="text\/css" href="stylesNoLine.css">');
TheImgWin.document.write('<body onclick="self.close()">');
TheImgWin.document.write('<img src="'+myImage+'" width="'+myWidth+'" height="'+myHeight+'" align="center" ');
TheImgWin.document.write('border="0" alt="'+capt+'"\/><h2 align="center" class="h1family">'+capt+'<\/h2>');
TheImgWin.document.write('<p align="center" class="text">Click to Close<\/p><\/body><\/html>');
TheImgWin.moveTo(origLeft,origTop);
TheImgWin.focus();
}
