window.onload = function() {
	var sField = document.getElementById("searchfield");
	if (sField) {
		sField.style.backgroundColor = "#5F6B8E";
		sField.onfocus = function(){
			this.style.width = "240px";
			this.style.backgroundColor = "white";
		};
		sField.onblur = function(){
			this.style.backgroundColor = "#5F6B8E";
			this.style.width = "108px";
		};
	}
	
	if (typeof fOnloadCallBack != 'undefined') fOnloadCallBack();
};

fCheckForm = function(n, c) {
	// must an email be included
	if (n && document.forms['frmEnquiry'].elements['name'].value == "") {
		alert("You have not included an email address.");
		return false;
	}
	if (document.forms['frmEnquiry'].elements['comments'].value == "") {
		alert("You have not included any text.");
		return false;
	}
	// is a code needed
	if (c && document.forms['frmEnquiry'].elements['name2'].value != cstr) {
		return false;
	}
	if (c) {
		var tmp = document.forms['frmEnquiry'].elements['comments'].value;
		tmp = tmp.toLowerCase();
		if ((tmp.indexOf("anal") != -1) ||
				(tmp.indexOf("porn") != -1) ||
				(tmp.indexOf("fuck") != -1) ||
				(tmp.indexOf("http://") != -1 ) ||
				(tmp.indexOf("https://") != -1 )) {
			window.location.replace("page00c.htm");
			return false;
		}
	}
	return true;
};

try {
  document.execCommand("BackgroundImageCache", false, true);
} catch(err) {}
