var defaultText = "ENTER KEYWORD";
    function WaterMark(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 validateSearch()
    {
       jQuery('#step_Loader').show() ;
       jQuery('#submit_search').hide() ;

    if(jQuery("#txt").val()== "" || jQuery("#txt").val()== defaultText){
        jQuery('#search_keyword_error').html('Invalid');
        jQuery('#step_Loader').hide() ;
        jQuery('#submit_search').show() ;
        return false;
    }else{
        location.replace(baseUrlForJs+'/search/'+jQuery("#txt").val());
        jQuery('#step_Loader').hide() ;
        jQuery('#submit_search').show() ;

    }
       

    }

    //location.replace(baseUrlForJs+'/search/'+jQuery("#keyword").val()+'/'+jQuery("#type").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() ;

    }


    }
