
function MM_jumpMenu(targ,selObj,restore)
{	//v3.0
	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

// Call example: <input name="username" id="username" type="text" value="Username" onfocus="javascript:autoClearInput('username');" />
function autoClearInput(id_str)
{
	var input = document.getElementById(id_str);
	if ((input.value == "Username") || (input.value == "Password"))
	{
		document.getElementById(id_str).value = "";
	}
}

function questionDelete(questionID_num)
{
	var answer = confirm("Are you sure you want to delete this question?");
	if (answer)
	{
		window.location = "crew_home.asp?deleteQuestionID=" + questionID_num;
	}
}

function questionDeleteArchive(questionID_num)
{
	var answer = confirm("Are you sure you want to delete this question?");
	if (answer)
	{
		window.location = "crew_questions.asp?deleteQuestionID=" + questionID_num;
	}
}

function loginFailed()
{
	alert("Login failed: username of password is incorrect.");
}
