
/*
var winTitle="Triet FotoLog";
// Description you want in the title bar.
var imgWinOn = false;
function showImg(imageName, imgWidth, imgHeight)
{
	var scWidth=0; var scHeight=0;
	if (imgWidth+20>screen.availWidth) 
	{ 
		scWidth = screen.availWidth; 
	} 
	else 
	{ 
		scWidth= imgWidth+20; 
	}
	if (imgHeight+60>screen.availHeight-30) 
	{ 
		scHeight = screen.availHeight-30; 
	} 
	else 
	{ 
		scHeight = imgHeight+60; 
	}
	var winName = imageName.substring(0,imageName.length-4);
	imgWin=window.open('', winName,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + scWidth +',height=' + scHeight+',screenX=0,screenY=0');
	imgWin.document.write('<HTML><HEAD><TITLE> ');
	imgWin.document.write(winTitle);
	imgWin.document.write(' </title></head><BODY marginheight=0 topmargin=0 leftmargin=0 marginwidth=0>');
	imgWin.document.write('<SCRIPT language="Javascript">self.moveTo(0,0);imagePos = location.search.indexOf("img=");imageName=location.search.substring(imagePos+4,location.search.length);</SCRIPT><p><img src="' + imageName + '"><div align=center><a href="javascript:top.close();">Close</a></div></p></body></html>');
	imgWin.document.close();
	return false;
}
*/

/*
Auto center window script- Eric King (http://redrival.com/eak/index.shtml)
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

var win = null;
function NewWindow(mypage,myname,w,h)
{
// Temp to force window size

w = 550;
h = 550;


LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;


var settings = "height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable, status=yes";


win = window.open(mypage,myname,settings);
}
