<!--

function nwFullscr(theURL,winName,winX,winY,winWid,winHgt){var nw = window.open(theURL,winName,'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + winWid + ',height=' + winHgt);nw.moveTo(winX,winY);nw.resizeTo(screen.availWidth,screen.availHeight);}
function nwPopup(theURL,winName,winX,winY,winWid,winHgt){var nw = window.open(theURL,winName,'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' + winWid + ',height=' + winHgt);nw.moveTo(winX,winY);}
function fullscrWin(){window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);}
// javascript functions from dreamweaver mx 2004
function MM_preloadImages(){ //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n,d){ //v4.01
	var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){
	d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
	if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];
	for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);
	if(!x&&d.getElementById)x=d.getElementById(n);return x;
}
function MM_openBrWindow(theURL,winName,features){ //v2.0; modified
	//window.open(theURL,winName,features);
	var nw = window.open(theURL,winName,features);
	nw.moveTo(20,20);
}
function togglediv(divtotal,divgrpname,divnum) {
	for( var i=0; i < divtotal; i++ ){
		document.getElementById(divgrpname + (i+1)).style.display = "none";
	}
	document.getElementById(divgrpname + divnum).style.display = "block";
}
function toggledivOff(divtotal,divgrpname,divnum) {
	for( var i=0; i < divtotal; i++ ){
		document.getElementById(divgrpname + (i+1)).style.display = "none";
	}
	document.getElementById(divgrpname + divnum).style.display = "none";
}
function ShowMenu(num, menu, max){
	//starting at one, loop through until the number chosen by the user
	for(i = 1; i <= num; i++){
			//add number onto end of menu
			var menu2 = menu + i;
			//change visibility to block, or 'visible'
			document.getElementById(menu2).style.display = 'block';
	}
	//make a number one more than the number inputed
	var num2 = num;
	num2++;
	//hide it if the viewer selects a number lower
	//this will hide every number between the selected number and the maximum
	//ex.  if 3 is selected, hide the <div> cells for 4, 5, and 6
	//loop until max is reached
	while(num2 <= max){
			var menu3 = menu + num2;
			//hide 
			document.getElementById(menu3).style.display = 'none';
			//add one to loop
			num2=num2+1;
	}
}
// for regis state button
function enableRS(){
	var val=0;
	for(i=0;i<document.rs_access_3.phil_resident.length;i++){
		if(document.rs_access_3.phil_resident[i].checked==true){
			val=document.rs_access_3.phil_resident[i].value;
			if(val=='yes'){
				document.rs_access_3.download.disabled=false;
			}else{
				document.rs_access_3.download.disabled=true;
			}
		}
	}
}
function maillink(pre_at,pre_dot,post_dot,subj,body){
	var pre_at=pre_at;
	var pre_dot=pre_dot;
	var post_dot=post_dot;
	var subj=escape(subj);
	var body=escape(body);
	var to=pre_at+'@'+pre_dot+'.'+post_dot;
	var doc="mailto:"+to+"?subject="+subj+"&body="+body;
	window.location=doc;
}
/* to use:
 * <a href="javascript:maillink(pre_at,pre_dot,post_dot,subj,body)">pre_at(at)pre_dot(dot)post_dot</a>
 */

//-->
