function init() {initSearchForm();return;}

function initSearchForm() {
if (!document.getElementById) return;
oSF = document.getElementById('searchField');
oSL = document.getElementById('searchLabel');
oSFr = document.getElementById('searchForm');
oSB = document.getElementById('searchButton');
if (!oSF || !oSL) return;
slt = '';
if (oSL.innerHTML !== '') {
slt = oSL.innerHTML;oSF.value = slt;}
oSF.onfocus = function () {
if (oSF.value !== '' && oSF.value == slt) {
oSF.value = '';}};
oSF.onblur = function () {
if (oSL.text !== '' && oSF.value == '') {
oSF.value = slt;}
return;}
oSB.onclick = function () {
if (oSF.value !== '' && oSF.value == slt) {
alert('Search criteria is incorrect');
oSF.focus();
return false;
}}
oSFr.onsubmit = function () { 
if (oSF.value == '' || oSF.value == slt) {
alert('Search criteria is incorrect');
oSF.focus();
return false;
} else {return true;}}}

function validateForm(form) {
oSF = document.getElementById('searchField');
oSL = document.getElementById('searchLabel');
if (!oSF || !oSL) return;
slt = oSL.innerHTML;
if (oSF.value == '' || oSF.value == slt) {
alert('Search criteria is incorrect');
oSF.focus();
return false;} else {return true;}
}

window.onload = function () {setTimeout(init, 100);};