// 11 Jan 2008 created by Michael Chasse
//
// Portions of this code came from The JavaScript Source!! http://javascript.internet.com 
//	Place this between the <head> tag of html or aspx 
//	<script language="javascript" type="text/javascript" src="scripts/SpecialFunctions.js"></script>
//	Functions DECLARATIONS

//Creates a pop up window with the specified url as a parameter.
// i.e. <a href="javascript:NewWindow('AnyUrl.aspx')">click here<a>
function NewWindow(URL)
{
	newWindow = new Date();
	id = newWindow.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'width=400,height=350,left = 440,top = 312');");
}

//Creates a pop up window with the specified image.
// i.e. <a href="images/image.jpg" target="_blank" onclick="imagePop('images/image.jpg',750,450,100,50); return false;" >image</a>
function imagePop(myImage,myWidth,myHeight,origLeft,origTop) 
{
	myHeight += 28;
	myWidth += 28;
	TheImgWin = window.open(myImage,'image','height=' + myHeight + ',width=' + myWidth +',toolbar=no,directories=no,status=no,' + 'menubar=no,scrollbars=no,resizable=no');
	TheImgWin.resizeTo(myWidth+2,myHeight+30);
	TheImgWin.moveTo(origLeft,origTop);
	TheImgWin.focus();
}
