function preloadImages() {
	if (document.images) {
		if (!document.preimglst)
			document.preimglst = new Array();
		var i, j = document.preimglst.length, a = preloadImages.arguments;
		for(i=0; i<a.length; i++) {
			if (a[i].indexOf("#") != 0) {
				document.preimglst[j]=new Image;
				document.preimglst[j++].src=a[i];
			}
		}
	}
}

//////////////////////////////////////////////////////////////////////////////////////

function openWhat() {
	var width = 400;
	var height = 300;
	var spec = "width=" + width + ",height=" + height + ",resizable=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes";
	if (_jsver >= 1.2) {
		var left = (screen.availWidth - width) / 2;
		var top = (screen.availHeight - height) / 2;
		spec += ",left=" + left + ",top=" + top;
	}

	MM_openBrWindow("","what",spec,1);
    	setTimeout("what.focus();",100);
}

function queryValidate(query) {
	if (query == '')
		return false;
	else
		return true;
}

exLength = 36;
function changeToolbox(status) {
	exDate = new Date;
	exDate.setMonth(exDate.getMonth()+exLength);
	document.cookie = "toolbox=" + status + '; expires=' + exDate.toGMTString() + '; path=/';
	reloadPage();
}

function reloadPage() {
	var newLocation = String(document.location).split("#");
	window.location.replace(newLocation);
}
