//--§ïÅܦæ­I´º function switchrow(obj,x,y){ if(x==1){obj.className='memindexFA'+y;} else{obj.className='memindexFB'+y;} } function chrow(obj,x){ if(x==1){obj.className='chrow';} else{obj.className='';} } function MM_goToURL() { //v3.0 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]+"'"); } // Cut String to the fixed length: a Chinese Char as two length; an English Char and ASCII<128 as one length function CutStr(str, length){ var templen = 0; var tempstr=""; for(var i = 0; i < str.length; i++){ var c = str.charAt(i); if(str.charCodeAt(i) > 128) templen += 2; else templen += 1; tempstr+=c; // alert("char: "+c+" charCode: "+); if(templen >= length){ if(tempstr.length < str.length)tempstr += "..."; break; } } return tempstr; }