var sbVal = "SEARCH";
var sbCurrentValue = "";
function clearBox(obj,_method) {
	var sb = document.getElementById(obj.id);
	sbCurrentValue = sb.value;
	if (_method==1) {
		} else if (_method==2) {
	}
	//alert(sbCurrentValue);
	if (_method==1) {
		sb.value = "";
		} else if (_method==2) {
			if (sbCurrentValue.length>3) {
				sb.value = sbCurrentValue;
			} else {
				sb.value = sbVal;
			}
		} else if ((_method==2)&&(sb.value.length>3)) {
		} else {
	}
}

function boxFocus(obj,_how) {
	var el = document.getElementById(obj.id);
	//alert(obj);
	//alert(obj.id);
	//alert(obj.className);
	if (_how==1) {
			obj.className="inputBoxOn";
			//alert("On");
		} else if (_how==0) {
			obj.className="inputBox";
			//alert("Off");
		} else {
	}
}

function showAdvancedSearch(_way) {
	document.getElementById("advancedSearchOutline").style.display=_way;
	document.getElementById("advancedSearch").style.display=_way;
}

function checkAll() {  }

/*var _name = "";
function revealByName(_name,_action) {
	var theElement = document.getElementById(_name).style;
	if (_action=="") {
			((theElement.display=="")||(theElement.display=="block")) ? 
				theElement.display = "none" : theElement.display = "block";
		} else if ((_action=="open")||(_action=="show")||(_action=="block")||(_action=="on")||(_action=="display")||(_action=="unhide")||(_action=="visible")) {
			 theElement.display = "block" 
		} else {
			theElement.display = "none";
	}
}
*/
var sbCurrentValue = "";
var tempSbValue = "";
function setBoxContents(obj,_method) {
	var sb = document.getElementById(obj.id);
	var sbVal = "SEARCH";
	sbCurrentValue = sb.value;
	//alert(sbCurrentValue);
	if (_method==1) {
			sb.value = "";
		} else if ((_method==2)&&(sbCurrentValue=="")) {
			sb.value = "SEARCH";
		} else {
			//Do nothing..keep the new value
	}
	/*
	if ((_method==1)&&(sb.value==sbVal)) {
		sb.value = "";
			if (asb.style.display=="block") {
					showAdvancedSearch('none');
				} else {
			}
		} else if ((_method==2)&&(sb.value=="")) {
			sb.value = sbVal;
		} else if ((_method==2)&&(sb.value.length>3)) {
		} else {
	}
	*/
}

