function frm_submit(formAction)
{	var error_msg = '';	
	if(document.content_search.name.value == '' || document.content_search.name.value.match(/^[\W.*|\s+]/))	{
		error_msg = "Please enter text to search\n";
	}	

	if(error_msg) {
		alert(error_msg);
		return false;
	}
	else {
		document.content_search.searchbutton.disabled = true;
		document.content_search.method = "post";
		document.content_search.action = formAction
		document.content_search.submit();
		return true;
	}
}
function clear_text(elem)
{
	if(elem.value == 'Search Rude Content'){
		elem.value = '';
	}
}
function logout_confirmation(type,sendTo)
{
	var warning = "IMPORTANT, READ ALL:\n\nAre you sure you want to logout?\n\nUnless you know your password you will not be able to get back in!! It costs you NOTHING to stay logged in.\nWhen you return you will not be asked for a password and can get instant access. Personal information is NEVER given out.\n\nWe highly recommended you CANCEL this request and just close your browser!\n";
	if(type == 'webmaster'){
		warning = "Are you sure you want to logout?";
	}
	var answer = confirm(warning);
	if (answer){
		window.location = sendTo;
	}
}