function show_element_details(id) {
	if(document.getElementById(id).style.display == "none")
	{
		if(id == "Email" || id == "Password")
		{
			if(document.getElementById(id).style.display == "block")
			{
				document.getElementById(id).style.display = "none";
				return;
			}
		}

		document.getElementById(id).style.display = "block";
	}
	else if(document.getElementById(id).style.display == "block")
	{
		document.getElementById(id).style.display = "none";
	}
}

function show_options(id, which) {
	if(which == "hide")
	{
		document.getElementById(id).style.display = "none";
	}

	else if(which == "show")
	{
		document.getElementById(id).style.display = "block";
	}
}

function select_all() {
	var theForm = document.getElementById("module_form");
	for(i = 0; i < theForm.length; i++)
	{
		if(theForm.elements[i].type == "checkbox"  && theForm.elements[i].className == "module_checkbox")
		{
			theForm.elements[i].checked = "checked";
		}
	}
}

function clear_all() {
	var theForm = document.getElementById("module_form");
	for(i = 0; i < theForm.length; i++)
	{
		if(theForm.elements[i].type == "checkbox"  && theForm.elements[i].className == "module_checkbox")
		{
			theForm.elements[i].checked = "";
		}
	}
}


function promptBox(descriptor, field) 
{
	var myPrompt = prompt("Enter a(n) " + descriptor + " below:");

	if(myPrompt)
	{
		document.getElementById(field).innerHTML += "<option value='" + myPrompt + "x' selected='selected'>" + myPrompt + "</option>"; 
	}
}