function toggleItem(itemID){
	if(document.getElementById(itemID).style.display == 'none'){
		document.getElementById(itemID).style.display='inline';
	}else{
		document.getElementById(itemID).style.display='none';
	}
}

function checkForm(theForm){
	for(i=0; i<document.getElementById(theForm).elements.length; i++){
		if(document.getElementById(theForm).elements[i].value == ''){
			alert('Please enter a value for the '+document.getElementById(theForm).elements[i].name+' field');
			document.getElementById(theForm).elements[i].focus();
			return false;
		}
	}
}

function selLink(theMenu){
	window.location.href=document.getElementById(theMenu).value;
}

function confirmAction(theMessage) {
	if(confirm(theMessage)){ return true ; }
	else{ return false ; }
}

function popUp(theUrl,winName,theOpts){
	window.open(theUrl,winName,theOpts);
}
