// onfocus="clear_box1(this);" onBlur="fill_box1(this);"


function clear_box1(thepath)
{
	thepath.style.backgroundImage = 'none';
}
function fill_box1(thepath)
{
	if (thepath.style.backgroundImage = 'none' && thepath.value == '')
	thepath.style.backgroundImage = 'url(https://www.allsouth.org/templates/allsouth/images/pass.gif)';
}

// onfocus="clear_box(this,'Account Number');" onBlur="fill_box(this,'Account Number);"

function clear_box(thepath,val)
{
	if (thepath.value == val)
	thepath.value = "";
}


function fill_box(thepath,val)
{
	if (thepath.value == "")
	thepath.value = val;
}



// for opening in a new tab/window - add hidden fields to the form for the real acct num/pass fields
function clearform()
{
	document.login.ACCOUNTNUMBER.value = document.login.ACCOUNTNUMBER_f.value;
	document.login.PASSWORD.value = document.login.PASSWORD_f.value;
	document.login.ACCOUNTNUMBER_f.value = '';
	document.login.PASSWORD_f.value = '';
}

	function check_search() {
		if(document.forms["search"]["q"].value == 'Search' || document.forms["search"]["q"].value == ''){
		alert('Please enter a search term');
			return false;
		}else{
			return true;
		}
	}

