var win= null;
	function NewWindow(mypage,myname,w,h,scroll){
	  var winl = (screen.width-w)/2;
	  var wint = (screen.height-h)/2;
	  var settings  ='height='+h+',';
		  settings +='width='+w+',';
		  settings +='top='+wint+',';
		  settings +='left='+winl+',';
		  settings +='scrollbars='+scroll+',';
		  settings +='resizable=yes';
	  win=window.open(mypage,myname,settings);
	  if(parseInt(navigator.appVersion) >= 4){win.window.focus();}
	}


	function goDeleteEvent(CurrentLink){
	  if (confirm('Are you sure you want to delete the selected event? WARNING! THIS CANNOT BE UNDONE!') == true){
		 window.location.reload(CurrentLink);
	  }else{
		 return false;
	  }
	} 


  function goValidate(){
    document.all.colCal_EventBody.value = document.all.divCal_EventBody.innerHTML;
    if (Date.parse(document.all.adminform.colCal_EventDate.value) == "") {
      alert("Your must enter an EVENT DATE");
      return false;
	  document.all.adminform.colCal_EventDate.focus();
    }
    if (document.all.adminform.colCal_EventTitle.value == "" ) {
      alert("You must enter and EVENT TITLE");
      return false;
    }
    if (document.all.adminform.colCal_EventBody.value == "" ) {
      alert("You must enter and EVENT DESCRIPTION");
      return false;
    }
    if (document.all.adminform.colCal_EventAllDay.checked == "") {
      StartTime = document.all.adminform.colCal_EventDate.value + " " + document.all.adminform.colCal_EventStartTime.value
      EndTime = document.all.adminform.colCal_EventDate.value + " " + document.all.adminform.colCal_EventEndTime.value
      StartTime = new Date(StartTime)
      EndTime = new Date(EndTime)
      if (Date.parse(StartTime) > Date.parse(EndTime)) {
        alert("You END TIME cannot be before you START TIME");
       return false;
       }
    }

	return true;
  }
  
  function checkedAllDay(){
   if (document.all.adminform.colCal_EventAllDay.checked == true) {
    document.all.colCal_EventStartTime.disabled=true;
    document.all.colCal_EventEndTime.disabled=true;
   }
   if (document.all.adminform.colCal_EventAllDay.checked == false) {
    document.all.colCal_EventStartTime.disabled=false;
    document.all.colCal_EventEndTime.disabled=false;
   }
  }
  
  
    function PrintPage() {
    alert("<%=Sub1Var1%>");
    window.print();
  }