
function switch_pages(section_name)
{
	switch(section_name)
	{
		case "browse":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/browse_intro.asp";
			break;
		case "papereg":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/Trial/offlinesubscr.asp";
			break;
		case "report":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/Common/Reports/report_intro.asp";
			break;
		case "download":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/download_intro.asp";
			break;
		case "news":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/news_intro.asp";
			break;
		case "home":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/main_intro.asp";
			break;
		case "myaccount":
			alert("You have not accepted the Licence Agreement");
return;
			document.location.href = "/my_account.asp";
			break;
		case "about":
			break;
		case "admin":
			document.location.href="/Common/Admin/Admin_intro.asp?random=1007658595";
			break;
		case "account":
			document.location.href="/account.asp?random=1007658595";
			break;
		case "map":
			document.location.href="/default.asp?random=1007658595";
			break;
		case "logout":
			log_out();
			break;
		default:
			alert("unrecognised command");
			break;
	}
}

function toggleIE(section_name)
{

	return false;
}

function toggleNAV(section_name)
{
switch_pages(section_name);
	return false;
}

function toggleAny(section_name)
{
	switch_pages(section_name);
	return false;
}

function validate_user()
{
	var strUserName = document.forms["redirect_form"].elements["user_name"].value;
	var strPassword = document.forms["redirect_form"].elements["user_pasword"].value;
	if (strUserName == "" || strPassword =="")
	{
		alert("You must fill in a username and password");
		document.forms["redirect_form"].elements["user_name"].focus();
		return false;
	}
	document.forms["redirect_form"].submit();
	return false;
}

function log_out()
{
	if (confirm("Are you sure you want to log out?")) {
	document.location.href="/default.asp?logout=true";
	}
	return false;
}

