
	
	function ghostText(idname, textinsert){
	
		//Add default content and css
		$(idname).attr({ title: textinsert });
		$(idname).addClass('defaultTextActive');
		
		//Add onFocus event that will remove custom CSS and set the value to null
		$(idname).focus(function(srcc) {
			if ($(this).val() == $(this)[0].title) {
				$(this).removeClass('defaultTextActive');
				$(this).val('');
			}
		});
			
		//Add onBlur event that will add custom CSS and set the value to the title attribute
		$(idname).blur(function() {
			if ($(this).val() == '') {
				$(this).addClass('defaultTextActive');
				$(this).val($(this)[0].title);
			}
		});
		
		//By default run the onBlur event to add the custom CSS and content
		$(idname).blur();
		
		
		
		//Add onClick event to the search button in order to clear the default text if it is left in the textbox by the user
		$(idname).next().click(function() {
			
			if ( $(idname).attr( 'value' ) == textinsert ){
				$(idname).attr('value', '');
			}		
			/*if(idname.value == idname.title && idname.title != '') {
				idname.value = '';
			} */
		});
		
		
	}
