﻿function _id(id){
	return document.getElementById(id);
}
function isEmpty(val){
	if(val.length==0){
		return true;
	}else{
		return false;
	}
}
function flash(swf_file,swf_width,swf_height,swf_tran){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write('width="'+ swf_width +'" height="'+ swf_height +'">');
	document.write('<param name="movie" value="'+swf_file+'"><param name="quality" value="high">');
	if(swf_tran==true){
		document.write('<PARAM NAME=wmode value=transparent>');
	}
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<embed src="'+swf_file+'" wmode="opaque" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" ');
	document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); 
	document.write('</object>');
}