function confirmAction(question, uri) { 
    if(confirm(question)){ 
        document.location=uri + '&confirm=1'; 
    } 
    return false; 
}

function jumpTo(toolURL){
	window.location.href = toolURL.options[toolURL.selectedIndex].value;
}

function me()
{
	return alert('hello');
}

function checkbox_checker(){
	
	//Set checkbox_choices to zero
	var checkbox_choices = 5;
	
	for(counter = 0; counter < formname.checkboxname.length; counter++)
	{
		if(formname.checkboxname[counter].checked)
		{
			checkbox_choices = checkbox_choices + 1;
		}
	}
	
	if(checkbox_choices > 4)
	{
		msg = "You are limited to only four selections.\n"
		msg = msg + "You have made " + checkbox_choices + " selections.\n"
		msg = msg + "Please remove " + (checkbox_choices - 4) + " selection(s)."
		
		alert(msg)
		return false;
	}
}

function changeRow(x,r,color) {
	if (x.checked==true) {
			if (document.all)
				document.all[r.id].bgColor = "#99CCFF";
			else if (document.getElementById)
				document.getElementById(r.id).bgColor = "#99CCFF";
			else if (document.layers)
				document[r.id].bgColor = "#99CCFF";
		}
		else {
			if (document.all)
				r.bgColor = color;
			else if (document.getElementById)
				document.getElementById(r.id).bgColor = color;
			else if (document.layers)
				r.bgColor = color;
		}
	}

function addRemoveExtension(boxChecked){
	var usernameBox = document.getElementById('username');
	var isChecked = (boxChecked == undefined ? false : boxChecked);
	
	if(isChecked)
	{
		usernameBox.value += "@gonzales.txed.net";
	} else {
		var pos = usernameBox.value.indexOf('@');
		usernameBox.value=usernameBox.value.substring(0,pos);
	}
}