function bugPrint(the_message) {
	if(DEBUG_ON == true) {
		alert(the_message)
	}
}

function cleanUpNumber(strSource)
{
	intTemp = parseInt(strSource);
	return Number(intTemp);
}

function isIE4up()
{
	if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) >= 4)
		return true;
	else
		return false;
}

function search_bw(strType) {
	searchfor = document.srch.txtQuickSearch.value;
	if (searchfor) {
		if (strType == "BarrysWorld")
			document.srch.submit();
		else if (strType == "Jeeves") {
		
			ourid = 12345;		
			url = "/news/searchjeeves.asp";
			url += "?sourcid=" + ourid;
			url += "&ask=" + searchfor;
			url += "&scope=web";
			url += "&origin=nnnn"; // Dunno
			url += "&qSource=n"; // Dunno
			window.location.href = url;
		}
	} else {
		alert("Please enter some text to search for first");
	}
}

