//function to check if the what textbox is blank
function checkWhatFld(what, where)
{
	what.value = what.value.replace(/^\s+/, '');
	what.value = what.value.replace(/\s+$/, '');

    if(what.value == "" || what.value == "Please enter the keyword.")
    {
    	what.focus();
    	what.value = "Please enter the keyword.";
    	select_all(what);
    	return false;
    }

    var iChars = "!@#$%^&*()+_=[]\\\';./{}|\":<>?";

    for (var i = 0; i < where.value.length; i++) {
      	if (iChars.indexOf(where.value.charAt(i)) != -1) {
      		where.focus();
      		alert ("Special characters are not allowed in Where.");
      		return false;
      	}
	}
}

function select_all(thisFld)
{
	var Fld_val=eval("thisFld");
}

function setCompanyName(cookieValue, domain) {
	document.cookie = "coo_company="+escape(cookieValue) + ";path=/;domain=.zipcodez."+domain+";";
}