<!--
dayName = new Array ("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday")
monName = new Array ("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
now = new Date

agt=navigator.userAgent.toLowerCase(); 
is_ie   = (agt.indexOf("msie") != -1) ? true : false; // true if we're on IE

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function pviiW3Cbg(obj, pviiColor) {
	obj.style.backgroundColor=pviiColor
}

function checkRenaFields() {
  var err = 0;
  var stat = 0;
  /* for testing - skip error checks: 
   document.MM_returnValue=true; // true = good false= no submit
   return;
 */  
 
 <!-- !!!field name "title" causes a JS error in YY_checkform.  -->
 err = YY_checkform('addresrc','restitle','#q','0','The resource title is required.','created','#q','0','The date that the resource was created is required.','descrip','#4','1','Description of the resource is required.','html_res','#4','1','The resource web page text is required.','notes','#4','1','You must include your name (bottom of the form).');
  if (!err) { 
   
 stat=0;
 box=document.addresrc.elements['authors[]'];
  for (i = 0; i<box.length; i++) {
  if (box[i].selected) {
     stat=1;
	 break;
    }
   } // end for loop 

  if (!stat) { // no author selected
	if (document.addresrc.group.value == '') {
	  alert ("Please select the author -- individual(s) or group.");
	  document.MM_returnValue=false;
	  return;
	}
  }
 document.MM_returnValue=true; 
 } // no previous error
else
 document.MM_returnValue=false; // return with error
 
 /* Calendar gives me the correct date format --
     alert("date="+document.addresrc.created.value);
 */
 
} // end function
//-->
