$(document).ready(function(){
	$(".defaultValue").focus(doClear);
	$(".defaultValue").blur(doDefault);
	$(".searchInput").click(function(ev){
		if ((this.clientWidth-ev['pageX']+this.offsetLeft)<21&&
				(ev['pageY']-this.offsetTop)<21){
				this.form.submit();
				}
	});
});



function doClear(ev) {
	if (this.value == this.defaultValue) { this.value = "" }
}

function doDefault(ev) {
	if (this.value == "") { this.value = this.defaultValue }
}

