

function write_it(status_text)
{
window.status=status_text;
}

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 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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}


  function showPoll(to,fro)
  {
    var currentTab = document.getElementById(fro);
    var newTab = document.getElementById(to);
    if(currentTab.currentStyle) {
      currentTab.style["display"] = "none";
      newTab.style["display"] = "block";
    } 
  }
	
function popwindow(URL,h,w) {
        var PopWindow;
				var properties = "scrollbars=yes,resizable=yes,toolbar=0, height="+h;
				properties = properties + ", width="+w;
        PopWindow = window.open(URL, "popup",properties);
        if (parseInt(navigator.appVersion) >= 3){
        PopWindow.focus();
        }
			}
			
function popup(DaURL) {
        var ItsTheWindow;
        ItsTheWindow = window.open(DaURL, "popup",
"height=450,width=600,scrollbars=auto,resizable=yes,toolbar=0");
        if (parseInt(navigator.appVersion) >= 3){
        ItsTheWindow.focus();
        }
			}

function popupsmall(DaURL) {
        var ItsTheWindow;
        ItsTheWindow = window.open(DaURL, "popup",
"height=400,width=400,scrollbars=1,resizable=no,toolbar=0");
        if (parseInt(navigator.appVersion) >= 3){
        ItsTheWindow.focus();
        }
			}
			

  // Original JavaScript code by Chirp Internet: www.chirp.com.au
  // Please acknowledge use of this code by including this header.
	// switches day programs
	
function showTimes(date)
  {
    if(!document.getElementById) return;

    var currentTab = document.getElementById(current);
    var newTab = document.getElementById(date);
    if(currentTab.currentStyle) {
      // old-style for msie
      currentTab.style["display"] = "none";
      newTab.style["display"] = "block";
    } else {
      currentTab.style.setProperty("display", "none", "");
      newTab.style.setProperty("display", "block", "");
    }
    current = date;
  }
	
/*
	// to prevent right-clicking to download images etc
	<!-- Begin
function right(e) {
if (navigator.appName == 'Netscape' && 
(e.which == 3 || e.which == 2))
return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && 
(event.button == 2 || event.button == 3)) {
alert("Sorry, you do not have permission to right click.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
//  End -->
*/