<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
function doZoom(size){
document.getElementById('zoom').style.fontSize=size+'px'
}
var NS4 = (document.layers);
var IE4 = (document.all);
var win = window;
var n   = 0;
function findIt() {
if (searchstr.value != "")
findInPage(searchstr.value);
}
var flag=true;
function DrawImage(ImgD){ 
    var image=new Image(); 
    image.src=ImgD.src; 
    if(image.width>0 && image.height>0){ 
        flag=true;
        if(image.width>=700){
            ImgD.width=700;
            ImgD.height=(image.height*700)/image.width;
        }else{
            ImgD.width=image.width;
            ImgD.height=image.height; 
        }
    }
}
function ContentImage(ImgD){
    var image=new Image();
    image.src=ImgD.src;
    if(image.width>0 && image.height>0){
        flag=true;
        if(image.width>=500){ 
            ImgD.width=500; 
            ImgD.height=(image.height*500)/image.width; 
        }else{ 
            ImgD.width=image.width;
            ImgD.height=image.height;
        }
    }
}
//function cgimg(o){
//var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
//return false;
//}
var currentpos,timer; 
function initialize() 
{ 
timer=setInterval("scrollwindow()",10);
} 
function sc(){
clearInterval(timer); 
}
function scrollwindow() 
{ 
currentpos=document.body.scrollTop; 
window.scroll(0,++currentpos); 
if (currentpos != document.body.scrollTop) 
sc();
} 
document.onmousedown=sc
document.ondblclick=initialize
function gbcount(message,total,used,remain)
{
	var max;
	max = total.value;
	if (message.value.length > max) {
		message.value = message.value.substring(0,max);
		used.value = max;
		remain.value = 0;
		alert("ÁôÑÔ²»ÄÜ³¬¹ý" +max+ "¸ö×Ö!");
		}
	else {
		used.value = message.value.length;
		remain.value = max - used.value;
		}
}
function showsubmenu(sid)
{
whichel = eval("submenu" + sid);
	if (whichel.style.display == "none")
	{
	eval("submenu" + sid + ".style.display='';");
	}
	else
	{
	eval("submenu" + sid + ".style.display='none';");
	}
}
