function openWindow(cPage,cName,iWidth,iHeight) {
	iMyWidth = (window.screen.width/2) - ((iWidth/2) + 10);//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((iHeight/2) + 50);//half the screen height minus half the new window height (plus title and status bars).
	window.open(cPage,cName,"width="+iWidth+",height="+iHeight+",left="+iMyWidth+",top="+iMyHeight+",screenX="+iMyWidth+",screenY="+iMyHeight+",toolbar=no,directories=no,status=yes,scrollbars=yes,resizable,menubar=yes");
}	
function PictureWindow(cFile) {
	window.open(cFile,"MemberWindow","toolbar=no,width=900,height=800,directories=no,status=no,scrollbars=yes,resizable,menubar=no")
}

function LinksWindow(cURL) {
	window.open(cURL,"LinksWindow","toolbar=yes,width=800,height=600,directories=no,status=yes,scrollbars=yes,resizable,menubar=yes")
}
function doAdvanced() {
	if (document.Main.advanced.value=="yes") {
	  top.Main.location="Links.cfm?advanced=no";
	}
	else {
	  top.Main.location="Links.cfm?advanced=yes";
	}
}
function editWindow(cUniqueNum) {
	iWidth = 600;
	iHeight = 250;
	iMyWidth = (window.screen.width/2) - ((iWidth/2) + 10);//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((iHeight/2) + 50);//half the screen height minus half the new window height (plus title and status bars).
	window.open("Links_Edit.cfm?num="+cUniqueNum,"Committee","width="+iWidth+",height="+iHeight+",left="+iMyWidth+",top="+iMyHeight+",screenX="+iMyWidth+",screenY="+iMyHeight+",toolbar=no,directories=no,status=yes,scrollbars=no,resizable,menubar=no");
}

function addLink() {
	iWidth = 600;
	iHeight = 250;
	iMyWidth = (window.screen.width/2) - ((iWidth/2) + 10);//half the screen width minus half the new window width (plus 5 pixel borders).
	iMyHeight = (window.screen.height/2) - ((iHeight/2) + 50);//half the screen height minus half the new window height (plus title and status bars).
	window.open("Links_Edit.cfm?action=add","Committee","width="+iWidth+",height="+iHeight+",left="+iMyWidth+",top="+iMyHeight+",screenX="+iMyWidth+",screenY="+iMyHeight+",toolbar=no,directories=no,status=yes,scrollbars=no,resizable,menubar=no");
	location.reload(true)
}

