function togleItem(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);
}

function svcCharge(){
	var cutOff1 = 13;
	var cutOff2 = 20;
	var price1 = '2.50';
	var price2 = '3.00';
	var price3 = '4.00';
	if(document.getElementById('price').value < cutOff1) 
		document.getElementById('svc_charge').value = price1;
	else if(document.getElementById('price').value < cutOff2) 
		document.getElementById('svc_charge').value = price2;
	else document.getElementById('svc_charge').value = price3;
}
