
    var marquee_tatl_show="";
    /*highlight search*/
    var auto_sch=setTimeout("auto_hightlight_sch()",2000)
    function auto_hightlight_sch(){
      try
        {
	        if(document.form1.bgtxt != null){
	        	setTimeout("highlight_search(document.form1.bgtxt)",1000)
			//alert(document.form1.search_text);
			//alert(document.selection.createRange().text);
	        	document.getElementById('sch_flot').innerHTML = "";
	        	document.getElementById('sch_flot').style.padding="0px";
	        }
        } 
      catch(e) 
        {;}
    }
    
    function value_lr_trim(str){
    	var ndx = str.lastIndexOf(" ");
    	re = /^[ ]+|[ ]+$/g;
    	str = str.replace(re, "");
    	return str;
    }
    function highlight_search(theField){
      try 
        {
    	  var selectedText = document.selection;
    	  //alert(selectedText.type);
    	  if (selectedText.type == 'Text')
    	    {
    		  var newRange = selectedText.createRange();
    		  //theField.select();
    		  var range_text=value_lr_trim(newRange.text);
    		  if(range_text.length>=2&range_text.length<=20)
    		    {
    		    theField.value = range_text;
    		    document.getElementById('sch_flot').style.left=document.body.scrollLeft+10;
    		    document.getElementById('sch_flot').style.top=document.body.scrollTop+10;
    		    document.getElementById('sch_flot').style.padding="3px";
    		    document.getElementById('sch_flot').innerHTML = range_text;
    		    }
    	    }
        else
    	    {
    		  //alert('select a text ');
    	    }
        window.clearTimeout(auto_sch);
        auto_sch=setTimeout("auto_hightlight_sch()",1000);
        } 
      catch(e) 
        {;}
    }
    /*highlight search*/
    var flot_bnr_htm="";
    var menu_bnr_htm="";
    var fusw_bnr_htm="";
    function check_key(){
        if ((event.keyCode==76) && event.ctrlKey && event.altKey)
            {
            
            ans=confirm('Login Dotweb Admin');
            if (ans==true)
                {
                location.replace('/login.jsp');
                }
            return;
            
            }
    }
    function dw_bnr(bn_id,show){
      if(bn_id!=null&&show!=null)
        {
        var bnr_obj=document.getElementById(bn_id);
        if(show=="v")
          bnr_obj.style.visibility="visible";
        if(show=="h")
          bnr_obj.style.visibility="hidden";
        }
    }



