// JavaScript Document
function fullMsg()
{
	alert('Registration for Spring 2012 Expo has closed. Please contact the Director at engr-expo@illinois.edu for questions or concerns.');
	//alert('Registration has not started for Fall 2010 Expo. It will be opened soon (mid-April).');
	//alert('Registration for Fall 2009 Expo is full. Please contact the Director at expo@ec.uiuc.edu for questions or concerns.');
	//alert('Registration has not started for Spring 2009 Expo. It will be opened soon.');
}
function layoutMsg()
{
	alert('The table layouts for the Engineering Employment Expo will be out closer to Expo. Sorry for the inconvenience.');
}

function checkCheckboxes(doc, className)
{	
	//Check for no className
	if(className === undefined){
		var checks = doc.getElementsByTagName('input');
		for(i=0; i<checks.length; i++){
			if(checks[i].type == "checkbox"){
				checks[i].checked = true;
			}
		}
	}
	else{
		var checks = doc.getElementsByClassName(className);
		for(i=0; i<checks.length; i++){
			if(checks[i].type == "checkbox"){
				checks[i].checked = true;
			}
		}
	}	
}

function uncheckCheckboxes(doc, className)
{	
	//Check for no className
	if(className === undefined){
		var checks = doc.getElementsByTagName('input');
		for(i=0; i<checks.length; i++){
			if(checks[i].type == "checkbox"){
				checks[i].checked = false;
			}
		}
	}
	else{
		var checks = doc.getElementsByClassName(className);
		for(i=0; i<checks.length; i++){
			if(checks[i].type == "checkbox"){
				checks[i].checked = false;
			}
		}
	}	
}

