
function tbpg(o,i) //o:按的对象，i,按的是哪一组，即对应currenttbpage中的第几项。
{
		document.getElementById( currenttbpage[i]).className="notbpage";  //先改原来的头的样式
	 	document.getElementById( "s" + currenttbpage[i]).className="h";  //由于下面的框使用了和tbpage一致的命名，所以很容易地可以这样编程
		currenttbpage[i]=o.id;  //在currenttbpage对应处计一下被按下的ID号
		o.className="tbpage";   //新的头的样式
		document.getElementById( "s" + currenttbpage[i]).className="subpage"; //显示对应的内容
}
function clearinput(o)
{
    o.value="";
    o.onclick="";
}

function tbpgc(o,i,c) //o:按的对象，i,按的是哪一组，即对应currenttbpage中的第几项。//c=classname
{
		document.getElementById( currenttbpage[i]).className="notbpage" + c;  //先改原来的头的样式
	 	document.getElementById( "s" + currenttbpage[i]).className="h";  //由于下面的框使用了和tbpage一致的命名，所以很容易地可以这样编程
		currenttbpage[i]=o.id;  //在currenttbpage对应处计一下被按下的ID号
		o.className="tbpage" + c;   //新的头的样式
		document.getElementById( "s" + currenttbpage[i]).className="subpage" + c; //显示对应的内容
}
 
// function ppt_DoFSCommand(command, args) { 
//if (command == "title") { 
//document.getElementById("ppttitle").innerHTML="<a href=/oa/detailm.aspx?id=" + myurl[args] + " target=_blank>" + title[args] + "</a>";
//}
//}
function title(t)
{
    document.title=t;
}

var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
function swf(source,nm,w,h,wm,classn)
{
	var wms=new Array('','transparent','opaque','window');
    if(isNaN(wm)==false)
    {
        wm=wms[wm];
    }
    
	document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" id=\"" + nm+ "\" width=\""+ w +"\" height=\""+ h +"\" class=\""+ classn +"\"  align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"wmode\" value=\"" + wm + "\" /><param name=\"menu\" value=\"false\"><param name=\"movie\" value=\"" + source + ".swf\" /><param name=\"quality\" value=\"high\" /><embed src=\"" + source + ".swf\"  wmode=\"" + wm + "\" menu=false quality=\"high\" class=\""+ classn +"\"   width=\""+ w +"\" height=\""+ h +"\" swLiveConnect=true id=\"" + nm+ "\" name=\"" + nm+ "\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /></object>");
	}
function flash(o)
{
	return  isIE ? document.all[o] : document[o];  
	}
 function keysh(n)
{
	if (n=="")
	{
		showkeys_kg.style.display='none';
	}
}
function swsy(o,url)
{
	o.style.behavior='url(#default#homepage)';o.setHomePage(url);return(false);	
}
function jrsc(url,webname)
{
	window.external.AddFavorite(url,webname)	
};
function mstyle(n)
{
	obj = $(n).childNodes;
	for(var i =0 ;i<obj.length;i++)
	{
		obj[i].style.backgroundImage="url(/img/m"+(i+1)+".gif)";
		obj[i].style.backgroundRepeat="no-repeat";
		obj[i].style.backgroundPosition="left";
	}
}	