function inputFocus(obj, word){
	if ( obj.value == word ){
		obj.value = '';
	}
}

function inputBlur(obj, word){
	if ( obj.value == '' ){
		obj.value = word;
	}
}

function searchSubmit(obj, word){	
	return document.getElementById(obj).value == word ? false : true;
}

function offTimer() {

	if (document.timer) {
		window.clearTimeout(document.timer);
		document.timer = null;
	}
}

function show(obj) {
	document.getElementById(obj).style.display = 'block';
}

function hide() {
	if (document.vis_l3) {
			document.getElementById(document.vis_l3).style.display = 'none';
			document.vis_l3 = null;
		};
	document.getElementById(document.vis).style.display = 'none';
	
}
function on(obj) {
	offTimer();
	if (document.vis) {
		hide();
	}
	show(obj);
}

function off(obj) {
	document.vis = obj;
	document.timer = window.setTimeout('hide()', 300);
}