var search_default	=	[];

jQuery(function( $ ){
	
	$('input.search-input-q').each(function (e) {
		search_default[this.id]	=	this.value;
	});
	
			
	$('input.search-input-q').focus(function (e) {		
		if (this.value == search_default[this.id]) {
			this.value	=	'';
		}			
	});	
	
	$('input.search-input-q').blur(function (e) {		
		if (this.value == '') {
			this.value = search_default[this.id];
		}
	});	
	
	$('form.search-submit').submit(function (e) {
		
		myid	=	this.id.split('-').pop();
		var returnvalue	=	true;
		$('input.search-input-q').each(function (e) {
			inputID	=	this.id.split('-').pop();
			
			if (myid == inputID && search_default[this.id] == this.value) {
				returnvalue	=	false;
				return;
			}
		});
		
		
		return returnvalue;		
	});
});