﻿
   function Search()
    {
        var searchKeyWord = document.getElementById("txtSearch").value;
        var url = 'List.aspx';        
        if( searchKeyWord != '' && searchKeyWord != 'undefined' && searchKeyWord!= '上网时间别太长')
        {
            searchKeyWord = searchKeyWord.replace(/(^\s*)|(\s*$)/g,"");              
            url +=  '?Query=' +escape(searchKeyWord);
            window.open(url);
        }
        else{alert('搜索关键字不能为空！');}     
        
    }
    function enter_key_event(keyword)
    {
	    if(event.keyCode == 13)
	    {
		    event.keyCode = 9;
		    event.returnValue = false;
		    Search_510();
	    }
    }
    
    function   changeCode(obj){   
                 obj.src   =   "/manage/Validate.aspx?"   +   Math.random()           
              } 

    function Search_510()
    {
        var searchKeyWord = document.getElementById("txtSearch").value;
        var url = 'List.aspx';        
        if( searchKeyWord != '' && searchKeyWord != 'undefined' && searchKeyWord!= '上网时间别太长')
        {
            searchKeyWord = searchKeyWord.replace(/(^\s*)|(\s*$)/g,"");              
            url +=  '?strKeys=' +escape(searchKeyWord);
            window.open(url);
        }
        else{alert('搜索关键字不能为空！');}     
        
    }

function dyniframesize(down) { 
var pTar = null; 
if (document.getElementById){ 
pTar = document.getElementById(down); 
} 
else{ 
eval('pTar = ' + down + ';'); 
} 
if (pTar && !window.opera){ 
//begin resizing iframe 
pTar.style.display="block" 
if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ 
//ns6 syntax 
pTar.height = pTar.contentDocument.body.offsetHeight +20; 
//pTar.width = pTar.contentDocument.body.scrollWidth+20; 
} 
else if (pTar.Document && pTar.Document.body.scrollHeight){ 
//ie5+ syntax 
pTar.height = pTar.Document.body.scrollHeight; 
//pTar.width = pTar.Document.body.scrollWidth; 
} 
} 
} 



