function flash_echo(flash) {
	var so = new SWFObject(flash.src, flash.name, flash.width, flash.height, "0", flash.bgcolor);
	so.addParam("quality", flash.wmode?flash.wmode:"best");
	so.addParam("wmode", flash.wmode?flash.wmode:"transparent");
	so.addParam("menu", flash.menu?flash.menu:"false");
	so.addParam("scale", flash.scale?flash.scale:"noscale");
	if(flash.flashVars)so.addParam("flashVars", flash.flashVars?flash.flashVars:"");
	so.write(flash.id);
}

function killErrors() { return true; }//屏蔽报错

function showTip(info){
	$('tips').innerHTML	=	info;
}


function getEditorContents(FCKid){
	var oEditor = FCKeditorAPI.GetInstance(FCKid);
	return oEditor.GetXHTML(true);
}

function sendForm(formId,action,response,target,effect){
	// Ajax方式提交表单
	//saveEditor();
	$(formId).content.value=getEditorContents('content');
	//alert($(formId).content.value);
	if (CheckForm($(formId)))//表单数据验证
	{
		ThinkAjax.sendForm(formId,action,response);
	}
	
	//Form.reset(formId);
}
function sendForm2(formId,action,response,target,effect){
	// Ajax方式提交表单
	if (CheckForm($(formId)))//表单数据验证
	{	
		ThinkAjax.sendForm(formId,action,response);
	}
	//Form.reset(formId);
}
rowIndex = 0;

function prepareIE(height, overflow){
	bod = document.getElementsByTagName('body')[0];
	bod.style.height = height;
	//bod.style.overflow = overflow;

	htm = document.getElementsByTagName('html')[0];
	htm.style.height = height;
	//htm.style.overflow = overflow; 
}


function show(){
	if (document.getElementById('menu').style.display!='none')
	{
	document.getElementById('menu').style.display='none';
	document.getElementById('main').className = 'full';
	}else {
	document.getElementById('menu').style.display='inline';
	document.getElementById('main').className = 'main';
	}
}

function CheckAll(strSection)
	{
		var i;
		var	colInputs = document.getElementById(strSection).getElementsByTagName("input");
		for	(i=1; i < colInputs.length; i++)
		{
			colInputs[i].checked=colInputs[0].checked;
		}
	}





function ListMore(obj,id) {
	if (obj.className=='on') { //
		obj.className='';
		obj.innerHTML='显示全部';
		document.getElementById(id).style.height=obj.name;
		document.getElementById(id).style.overflow='hidden';
	} else {
		obj.className='on';
		obj.innerHTML='精简显示';
		document.getElementById(id).style.height='auto';
		document.getElementById(id).style.overflow='normal';
	}	
}
