﻿// JScript File
$(document).ready(function() {
                $('a').mouseover(function(){
                window.status='';
                $('a').css("text-decoration","none");
                return true;
                
                })
                .mouseout(function(){window.status='';return true;});
                var val = " search";
                //assign some watermark value into variable
                if ($("#txtSearch").val() == "") {
                    $("#txtSearch").val(val);
                }
                //Check if user and enter into the textbox and remove the class we have assigned on focus event of the text Box
                $("#txtSearch").focus(function() {
                    if (this.value == val) {
                        this.value = "";
                        //remove class when user focus on the textbox
                        $("#txtSearch").removeClass("watermark");
                    }

                });
                // If user did not enter any value in the text box then assign back the watermark value and assign the class
                $("#txtSearch").blur(function() {

                    if (this.value == "") {
                        this.value = val;
                        $("#txtSearch").addClass("watermark");// Add class to the textbox
                    }
                });
            });

