function swf(src,w,h){
	html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'">';
	html += '<param name="allowScriptAccess" value="sameDomain" />';
	html += '<param name="movie" value="'+src+'" />';
	html += '<param name="quality" value="high" />';
	html += '<param name="wmode" value="transparent" />';
	html += '<embed src="'+src+'" quality="high" bgcolor="#cc6600" width="'+w+'" height="'+h+'" name="main" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html += '<\/object>';
	document.write(html);
};
function swf1(src,w,h,panel){
	var html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'">';
	html += '<param name="allowScriptAccess" value="sameDomain" />';
	html += '<param name="movie" value="'+src+'" />';
	html += '<param name="quality" value="high" />';
	html += '<param name="wmode" value="transparent" />';
	html += '<embed src="'+src+'" quality="high" bgcolor="#cc6600" width="'+w+'" height="'+h+'" name="main" align="center" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html += '<\/object>';
	var oPanel = document.getElementById(panel);
	//alert(oPanel)
	insertBottom(oPanel,html);
	//document.write(html);
}
//把一段html代码插入指定的对象最后面
function insertBottom(obj, content){
	var element = (obj);	
	if(element.insertAdjacentHTML){			
		if(element.tagName == 'TABLE'){//alert(element.id)
			//在表格中不能直接以HTML的方式把一行插入进到， 所以上面的方法不行
			//try{
			var oDiv=document.createElement("div"),aRows;
			oDiv.innerHTML = "<table>"+content+"</table>";
			aRows= oDiv.childNodes[0].tBodies[0].rows;
			while(aRows.length>0){
				obj.tBodies[0].appendChild(aRows[0]);
			}
			//}catch(e){alert('e.description')}
		}else{
			element.insertAdjacentHTML('beforeEnd', content);	
		}
		aRows = null;
		oDiv = null;
	}else{
		var oRange = element.ownerDocument.createRange();				
  		initializeRange(oRange,element);				
		insertContent([oRange.createContextualFragment(content)],element);
		oRange = null;
	}
	function initializeRange(range,element){
		range.selectNodeContents(element);
		range.collapse(element);
	};
	
	function insertContent(fragments,element) {
		for(var i = 0; i < fragments.length; i++){
			element.appendChild(fragments[i]);
		};
	};
};