
function killErrors() 
{ 
return true; 
}   
window.onerror = killErrors; 



var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
//extra height in px to add to iframe in FireFox 1.0+ browsers
var FFextraHeight=getFFVersion>=0.1? 16 : 0 

function dyniframesize(iframename) {
var pTar = null;
if (document.getElementById){
    pTar = document.getElementById(iframename);
}
else{
    eval('pTar = ' + iframename + ';');
}
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+FFextraHeight; 
    }
    else if (pTar.Document && pTar.Document.body.scrollHeight){
      //ie5+ syntax
      pTar.height = pTar.Document.body.scrollHeight;
    }
}
}


function tp(obj){if(document.flpage.w.value.length>0)
{var oh=obj.href;obj.href=obj.href.replace(/w=.+/g,"w=");obj.href=obj.href.replace(/SearchSolved\.e\?sp=S.+/g,"SearchSolved.e?sp=S");var qw=document.flpage.w.value.trim();if(obj.href.indexOf("wenwen")!=-1)
{obj.href=obj.href+encodeURIComponent(qw);}else{obj.href=obj.href+qw;}}else{if(obj.id=="xunren"){obj.href="http://xunren.soso.com/"}else{obj.href="http://"+obj.hostname;}}}
String.prototype.trim=function()
{return this.replace(/(^\s*)|(\s*$)/g,'');}
$d=function(id){return document.getElementById(id);}
var st='';
function delaySM(event)
{clearTimeout(st);o=$d('tm');tt = setTimeout(function(){o.style.display="block";document.onmousemove = cp;},500);}
function cp(event)
{evt=window.event?window.event:event;var pointer=function(event){return{x:event.pageX||(event.clientX+
(document.documentElement.scrollLeft||document.body.scrollLeft)),y:event.pageY||(event.clientY+
(document.documentElement.scrollTop||document.body.scrollTop))};}(evt);l=o.offsetLeft-20;t=o.offsetTop-20;r=l+o.offsetWidth+40;b=o.offsetTop+o.offsetHeight+20;py=pointer.y;px=pointer.x;if((py>t&&py<b)&&(px>l&&px<r)){}
else{st=setTimeout(function(){o.style.display="none";},500);document.onmousemove=function(){};}}

function ltrim(s){   
	var flg = 0;   
	var lstr = '';   
	while(s.charCodeAt(flg) == 32 )flg++;    
	for(var index = 0; index < s.length - flg; index++)   
		lstr+= s.charAt(flg+index);   
	return lstr;   
} 

function check(adaad)
	{
		sw = ltrim(adaad.search.value);
    if (sw=="")
    	{
    		alert("ÇëÊäÈë¹Ø¼ü´Ê£¡");
    		adaad.search.focus();
    		return false;
  	}


return true;
	}
	
	
	
	function MM_goToURL()
{
var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function setbdf()
{
if(jcggs!="1")
document.bdf.word.focus();
}
mselect="";
thecity="";
jcggs="";
mymaildomain="";
dx1="";
dx2="";
mcssfn="";
scrw="2";
var CookieString=document.cookie;
var CookieSet=CookieString.split(';');
var SetSize=CookieSet.length;
var cps;
var x=0;
for(x=0;x<SetSize;x++)
{
cps=CookieSet[x].split('=');
if(cps[0].substring(0,1)==' ')
cps[0]=cps[0].substring(1,cps[0].length);
if(cps[0]=="mselect") mselect=cps[1];
if(cps[0]=="thecity") thecity=cps[1];
if(cps[0]=="jcggs") jcggs=cps[1];
if(cps[0]=="mymaildomain") mymaildomain=cps[1];
if(cps[0]=="dx1") dx1=cps[1];
if(cps[0]=="dx2") dx2=cps[1];
if(cps[0]=="mcssfn") mcssfn=cps[1];
}
if(mselect!='1'&&mselect!='2') mselect='1';
if(dx1!='1'&&dx1!='2') dx1='1';
if(dx2!='1'&&dx2!='2'&&dx2!='3') dx2='1';
if(screen.width<960)
scrw="0";
else if(screen.width<1024)
scrw="9";
else if(screen.width<1152)
{
if(mcssfn=="1")
scrw="1";
else
scrw="2";
}
else if(screen.width<1280)
{
if(mcssfn=="1")
scrw="1";
else
scrw="3";
}
else
{
if(mcssfn=="1")
scrw="1";
else
scrw="4";
}
if(scrw!="2") document.getElementById('mcss').href="m"+scrw.substring(0,1)+".css";