function popup(url,name,features){
		var newwindow;
		var features2;
		features2 = features + ', scrollbars=yes';
	  	newwindow=window.open(url,name,features2);
        if (window.focus) {
			newwindow.focus();
		}
        return false;
}

function printWindow(){
	if (window.print)
		{
			  window.print()
		}
}

function uncheckAll(x,y) {
	
 	if (x.checked == true){
		// minus one because the last one is the all box
 		for (var i = 0; i < document.p21[y].length - 1 ; i++) {
	
 			document.p21[y][i].checked = false;
		 }
	 }
 }
 function uncheckLast(y) {
	var howlong = document.p21[y].length;
 	document.p21[y][howlong-1].checked = false;
			
	 
 }
 
 var menus = [ 
                     new ypSlideOutMenu("menu1", "down", 249, 67, 200, 175), 
                     new ypSlideOutMenu("menu2", "down", 347, 67, 220, 175), 
                     new ypSlideOutMenu("menu3", "down", 463, 67, 175, 125), 
                     new ypSlideOutMenu("menu4", "down", 529, 67, 175, 150), 
                     new ypSlideOutMenu("menu5", "down", 620, 67, 150, 225) 
  
                ] 
  
           for (var i = 0; i < menus.length; i++) { 
                menus[i].onactivate = new Function("document.getElementById('act" + i + "').className='active';"); 
                menus[i].ondeactivate = new Function("document.getElementById('act" + i + "').className='';"); 
           } 