function killErrors() {return true;}window.onerror = killErrors;
var $ID=function(id){return "string"==typeof id ? document.getElementById(id):id};
var $TN=function(tag){return "string"==typeof tag ? document.getElementsByTagName(tag):tag};
var isIE=(document.all)?true:false;
//Flash
function showFlash(d,u,w,h,p,r,v){
var o=$ID(d);
p=(!p)?'Transparent':'Opaque';
r=(!r)?true:false;
v=(!v)?'':v;
if (o!=null){o.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="" width="'+w+'" height="'+h+'"><param name="movie" value="'+u+'"><param name="scale" value="noborder"><param name="wmode" value="'+p+'"><param name="menu" value="'+r+'"><param name="flashvars" value="'+v+'"><embed src="'+u+'" width="'+w+'" height="'+h+'" wmode="'+p+'" flashvars="'+v+'" menu="'+r+'" type="application/x-shockwave-flash"></embed></object>';}}
//setTab
function setTab(m,n){
 var tli=$ID("tabh"+m).getElementsByTagName("tt");
 var mli=$ID("tabul"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";  }}
//
function onoff(o){var j=$ID(o);if(j.style.display=='none'){j.style.display=''}else{j.style.display='none'}}
function on(o){var j=$ID(o);j.style.display=''}
function off(o){var j=$ID(o);j.style.display='none'}
//openwindows
function sp(newurl,windowName,width,height){
var theLeft,theTop
theLeft=(screen.width-width)/2-2
theTop=(screen.height-height)/2
window.showModelessDialog(newurl,windowName,'dialogwidth:'+width+'px;dialogheight='+height+'px;scrollbars:yes;status:no;toolbar:no;resizable:yes;left:'+theLeft+',top:'+theTop+'').focus();
}
//
function imgErr(img){img.src='skin/960/transparent.gif'}
function is_cn(s){var patrn=/^[\u4e00-\u9fa5a-zA-Z0-9]+$/;if (!patrn.exec(s)){ return false;} return true;}
function ChkNewSearch(){var f= 'ns';var g =$ID(f);if(!is_cn(g.keytext.value)){g.keytext.focus();g.keytext.value='';return false;}return true;}
