﻿function validateSearch() {
	
    var sSearchText = document.getElementById("txtSearch").value;
    if (sSearchText == "Search" || sSearchText =="") {
        alert("Please Enter your search keyword.")
        return false;
    }
    else {
        location.href = "/search.aspx?searchstr=" + sSearchText;
        
    }
}
function Try_to_Submit_This(Obj){
			var Previous_Value
			if((Obj.value == "Search")||(Obj.value == "Search")){
			Previous_Value = Obj.value;
			Obj.value="";
			}
			Obj.onblur=function(){
			if((Obj.value == "")||(Obj.value == "")){
			Obj.value = Previous_Value;
			}
			}
			}
			
			
			
			function checkInputKey(event,chatboxtextarea){
			if(event.keyCode == 13 && event.shiftKey == 0)  {
				
			validateSearch();
			if(Submit_Login()==false){
			return false;
			}
			}
			}

function blankSearch(isbland) {
    if (isbland == 1) {
        document.getElementById("txtSearch").value = "";
    }
    

}

