// JavaScript Document

 function toggleVisibility(id){         
	var iconspan;   
	information = "content_box" + id;
	plusiconspan = "expand_" + id;
	minusiconspan = "contract_" + id;
   
	// do the swap - coding provided to catch all browsers
	if (document.getElementById){
		var temp1=document.getElementById(information).style;

		if (temp1.display=='none'){
			document.getElementById(information).style.display="";
			document.getElementById(plusiconspan).style.display="none";
			document.getElementById(minusiconspan).style.display="";
		}
		else{
			document.getElementById(information).style.display="none";
			document.getElementById(plusiconspan).style.display="";
			document.getElementById(minusiconspan).style.display="none";
		}
	}
	
}

 function newWindow(url, res) {
    var url;
	var winname = 'calWin' + res;
  // window.open(url, "calWin", "width=800,height=950,toolbar=0,location=0,status=0,directories=0,       scrollbars=1,menubar=1,resizable=1,fullscreen=0");
  window.open(url, winname, "width=800,height=950,toolbar=1,location=1,status=1,directories=1,       scrollbars=1,menubar=1,resizable=1,fullscreen=0");
    }

function view(url) {
	var url;
	if (url != "") {
	window.open(url,'Viewing','width=800,height=600,menubar=1,location=1,toolbar=1,personalbar=1,status=1,scrollbars=1,resize=1');
	} else {
		return;
	}
}


function switchpage(select) {
// JavaScript function for switching to web page when user
// selects option from the given list box.
// Copyright Kelly Yancey, 1997, 1998.
  var index;

  for(index=0; index<select.options.length; index++)
    if(select.options[index].selected)
      {
        if(select.options[index].value!="")
          window.location.href=select.options[index].value;
        break;
      }
}
