var defaultText = "Search";
    function WaterMark(txt, evt)
    {
		jQuery('#search_error').hide();
        if(txt.value.length == 0 && evt == "blur")
        {
            txt.style.color = "gray";
            txt.value = defaultText;
        }
        if(txt.value == defaultText && evt == "focus")
        {
            txt.style.color = "black";
            txt.value="";
        }
    }


function validateSearch()
    {
		
       jQuery('#search_error').slideUp();


    if(jQuery("#keyword").val()== "" || jQuery("#keyword").val()== defaultText){
		jQuery("li.search").append("<div id='search_error'></div>");
        jQuery('#search_error').html('Enter valid Keyword(s)');
		jQuery('#search_error').slideDown(300).delay(2000).slideUp('400', function(){ jQuery(this).remove(); });

        return false;
    }else{
		
        location.replace(baseUrlForJs+'/search/'+jQuery("#keyword").val());
    }
    }
   
    function WaterMarkNew(txt, evt)
    {
        if(txt.value.length == 0 && evt == "blur")
        {
            txt.style.color = "gray";
            txt.value = defaultText;
        }
        if(txt.value == defaultText && evt == "focus")
        {
            txt.style.color = "black";
            txt.value="";
        }
    }


    function validateSearchForm()
    {
       jQuery('#step_Loader1').show() ;
       jQuery('#submit_search1').hide() ;

    if(jQuery("#keyword").val()== "" || jQuery("#keyword").val()== defaultText){
        jQuery('#search_keyword_error1').html('Invalid');
        jQuery('#step_Loader1').hide() ;
        jQuery('#submit_search1').show() ;
        return false;
    }else if(jQuery("#type").val()== "" )
   {
        jQuery('#search_keyword_error1').html('Invalid');
        jQuery('#step_Loader1').hide() ;
        jQuery('#submit_search1').show() ;

    }
    else{
        location.replace(baseUrlForJs+'/search/'+jQuery("#keyword").val()+'/'+jQuery("#type").val());
        jQuery('#step_Loader1').hide() ;
        jQuery('#submit_search1').show() ;

    }


    }
	
	
	jQuery(document).ready(function()
    {
        jQuery('.star_icon').blink(700); // default is 500ms blink interval.

    });
