function fnWriteObjectFlash(strMovie, strAllowScript, intWidth, intHeight, strName)
{	
	var strObject;
	strObject	=	"<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+intWidth+"' height='"+intHeight+"' id='"+strName+"' align='middle' VIEWASTEXT>"+
											"<param name='allowScriptAccess' value='always' />"+
											"<param name='movie' value='"+strMovie+"' />"+
											"<param name='menu' value='false' />"+
											"<param name='quality' value='high' />"+
											"<param name='wmode' value='transparent' />"+
											"<param name='bgcolor' value='#ffffff' />"+
											"<embed src='"+strMovie+"' menu='false' quality='high' wmode='transparent' bgcolor='#ffffff' width='"+intWidth+"' height='"+intHeight+"' name='"+strName+"' align='middle' allowScriptAccess='"+strAllowScript+"' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />"+
											"</object>"
	document.write(strObject);
}
//复选表单全选事件 form：表单名
function CheckAll(form)  {
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
		if (e.name != 'chkall'&&e.type=="checkbox")
		{
			e.checked = form.chkall.checked;
		}
	}
}
function runstar(a,time,flag){
	if (1 == flag){runx=setInterval("run("+a+")",10)}
	else{runx=setInterval("run2("+a+")",10)}

}
function runover(){
clearInterval(runx)
}
function run(a){
scrollx=frm_frdlist.document.body.scrollLeft
scrolly=frm_frdlist.document.body.scrollTop
scrollx=scrollx+a
frm_frdlist.window.scroll(scrollx,scrolly)
}
function run2(a){
scrollx=frm_piclist.document.body.scrollLeft
scrolly=frm_piclist.document.body.scrollTop
scrollx=scrollx+a
frm_piclist.window.scroll(scrollx,scrolly)
}
function x_down(theobject){
	object=theobject
	
	while(object.filters.alpha.opacity>60){
		object.filters.alpha.opacity+=-10
	}
}
function x_up(theobject){
	object=theobject
	while(object.filters.alpha.opacity<60){
		object.filters.alpha.opacity+=10
	}
}
function wback(){
	if(frm_frdlist.history.length==0){window.history.back()}
	else{frm_frdlist.history.back()}
}
function setTab(m,n){
var tli=document.getElementById("menu"+m).getElementsByTagName("li"); /*获取选项卡的LI对象*/
var mli=document.getElementById("main"+m).getElementsByTagName("ul"); /*获取主显示区域对象*/
for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":""; /*更改选项卡的LI对象的样式，如果是选定的项则使用.hover样式*/
  mli[i].style.display=i==n?"block":"none"; /*确定主区域显示哪一个对象*/
}
}
