//Clear Textbox Default Value On Focus
//NOTE: limitation: cannot input default values, will just clear
function clear_def_val(the_textbox, the_def_val)
{
	if(the_textbox.value == the_def_val)
	{
		the_textbox.value = '';
		the_textbox.className = 'style_textbox';
	}
}

//Side Button Highlighting
//Image Preloading
var sb_orig_img_path = "../img/left_side_button.gif";
var sb_hl_img_path = "../img/left_side_button_hl.gif";

var sb_orig_img = new Image();
	sb_orig_img.src = sb_orig_img_path;
var sb_hl_img = new Image();
	sb_hl_img.src = sb_hl_img_path;

var sb_orig_img_url = "url(\'" + sb_orig_img_path + "\')";
var sb_hl_img_url = "url(\'" + sb_hl_img_path + "\')";

function side_button_highlight(the_elm)
{
	the_elm.style.backgroundImage = sb_hl_img_url;
	document.body.style.cursor = "pointer";
}
	
function side_button_dull(the_elm)
{
	the_elm.style.backgroundImage = sb_orig_img_url;
	document.body.style.cursor = "auto";
}
	
function side_button_click(the_elm, the_url)
{
	side_button_dull(the_elm); 
	document.location = the_url;
}	



//Generic Element Highlighting (Page Num Nav)
var gen_elm_orig_color = "#FFFFFF";
var gen_elm_hl_color = "#A5C786";

function gen_elm_highlight(the_elm)
{
	the_elm.style.backgroundColor = gen_elm_hl_color;
	document.body.style.cursor = "pointer";
}

function gen_elm_dull(the_elm)
{
	the_elm.style.backgroundColor = gen_elm_orig_color;
	document.body.style.cursor = "default";	
}

function gen_elm_click(the_elm, the_url)
{
	gen_elm_dull(the_elm); 
	document.location = the_url;	
}



//Small Tab Highlighting
//Image Preloading
var tab60_orig_img_path = "../img/tab/60_tab.gif";
var tab60_hl_img_path = "../img/tab/60_tab_hl.gif";

var tab60_orig_img = new Image();
	tab60_orig_img.src = tab60_orig_img_path;
var tab60_hl_img = new Image();
	tab60_hl_img.src = tab60_hl_img_path;

var tab60_orig_img_url = "url(\'" + tab60_orig_img_path + "\')";
var tab60_hl_img_url = "url(\'" + tab60_hl_img_path + "\')";

function tab60_highlight(the_elm)
{
	the_elm.style.backgroundImage = tab60_hl_img_url;
	document.body.style.cursor = "pointer";
	the_elm.className="style_tab_hl";
}
	
function tab60_dull(the_elm)
{
	the_elm.style.backgroundImage = tab60_orig_img_url;
	document.body.style.cursor = "auto";
	the_elm.className="style_tab";
}
	
function tab60_click(the_elm, the_url)
{
	tab60_dull(the_elm); 
	document.location = the_url;
}	

//Large Tab Highlighting
//Image Preloading
/*
var tab120_orig_img_path = "../img/tab/120_tab.gif";
var tab120_hl_img_path = "../img/tab/120_tab_hl.gif";

var tab120_orig_img = new Image();
	tab120_orig_img.src = tab120_orig_img_path;
var tab120_hl_img = new Image();
	tab120_hl_img.src = tab120_hl_img_path;

var tab120_orig_img_url = "url(\'" + tab120_orig_img_path + "\')";
var tab120_hl_img_url = "url(\'" + tab120_hl_img_path + "\')";

function tab120_highlight(the_elm)
{
	the_elm.style.backgroundImage = tab120_hl_img_url;
	document.body.style.cursor = "pointer";
	the_elm.className="style_tab_hl";
}
	
function tab120_dull(the_elm)
{
	the_elm.style.backgroundImage = tab120_orig_img_url;
	document.body.style.cursor = "auto";
	the_elm.className="style_tab";
}
	
function tab120_click(the_elm, the_url)
{
	tab120_dull(the_elm); 
	document.location = the_url;
}
*/