$(document).ready(function() {
	var box = $("#search-box-field");
	box.focus(function() {
		if (box.hasClass("empty")) box.removeClass("empty");
	});
	box.blur(function() {
		if ((box.val() == "") && !box.hasClass("empty")) box.addClass("empty");
	});
});


/***********************************************
* Textarea Maxlength script- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function ismaxlength(obj){
	var mlength = parseInt(obj.getAttribute ? obj.getAttribute("maxlength") : "-1");
	if (mlength != -1) {
		if (obj.value.length>mlength) {
			obj.value = obj.value.substring(0,mlength);
		}
	}
}
