// File contains functions used across site

// Preload image used for tab rollovers
var active_tab_image = new Image();
active_tab_image.src = "../images/layout/active_tab.gif";


function go_quicklink(selector){
		window.location = selector.options[selector.selectedIndex].value;
}

function checkLogin(){
	// To be implemented
}

function checkCFLogin() {
	if (document.forms["login"].elements["USER"].value.length <= 1
		||  document.forms["login"].elements["PASS"].value.length <= 1 )
		{
			alert ("Please enter your email address and password.");
			document.forms["login"].elements["USER"].focus();
			return false;
		}
	else return true;
}

/*
 * parameter info:
 * 		cell - the table cell to change the class on
 *		area - signifies if the cell should have registrar styles
 *						or public area styles applied
 */
function activate(cell, area){
	if(area == 'admin') {
		//cell.setAttribute("background", "../images/layout/registrar/active_tab.gif");
	}
	else {
		//cell.setAttribute("background", "../images/layout/active_tab.gif");
	}
}

function deactivate(cell, area){
	if(area == 'admin') {
		//cell.setAttribute("background", "../images/layout/registrar/tab.gif");
	}
	else {
		//cell.setAttribute("background", "../images/layout/tab.gif");
	}
}