function NewWindow(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function NewWindow2(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,toolbar=yes'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function openImage(images, w, h)
{
	var windowprops = "location=no,scrollbars=no,menubar=no,toolbar=no" + ",left=50,top=0" + ",width=" + w + ",height=" + h + ";"
	a = window.open("","popupimage",windowprops);
	a.focus();
	a.document.open();
	a.document.write("<html><head><title>Lakesidedigital</title></head><body topmargin='0' leftmargin='0' marginwidth='0'  marginheight='0'>");
	a.document.write("<a href='javascript:window.close()'><image src='" + images + "' width=" + w + " height=" + h + " border='0' alt='Click to close' galleryimg='no' title='Click to close'></a>");
	a.document.write('</body></html>');
	a.document.close();
}
