function write_flash(url, width, height) {
	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=\"'+ width +'\" height=\"'+ height +'\" align=\"middle\">';
	html += '<param name=\"allowScriptAccess\" value=\"sameDomain\" />';
	html += '<param name=\"movie\" value=\"'+ url +'\" />';
	html += '<param name=\"quality\" value=\"high\" />';
	html += '<param name=\"wmode\" value=\"transparent\" />';
	html += '<param name=\"bgcolor\" value=\"#0000ff\" />';
	html += '<embed src=\"'+ url +'\" quality=\"high\" wmode=\"transparent\" bgcolor=\"#0000ff\" width=\"'+ width +'\" height=\"'+ height +'\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />';
	html += '</object>';
	document.write (html);
}

function WinPopup(url, sizeplace, param, name) {
	var arrayFeatures = new Array();
	var strFeatures = "";
	var strName = "";
	// Window Size & Place
	if (sizeplace != undefined) {
		sizeplaceArray = sizeplace.split(",");
		sizeplaceLen   = sizeplaceArray.length;
		for (i=0,max=sizeplaceLen; i<max; i++) {
			value = clearBlank(sizeplaceArray[i]);
			if (value != "") {
				switch (i) {
					case 0 :
						arrayFeatures.push("width="+ value);
						break;
					case 1 :
						arrayFeatures.push("height="+ value);
						break;
					case 2 :
						arrayFeatures.push("left="+ value);
						break;
					case 3 :
						arrayFeatures.push("top="+ value);
						break;
				}
			}
		}
	}
	// Window Features
	if (param != undefined && clearBlank(param) != "") {
		value = param.toLowerCase();
		if (value.indexOf("b") > -1) arrayFeatures.push("scrollbars=yes"); else arrayFeatures.push("scrollbars=no");
		if (value.indexOf("s") > -1) arrayFeatures.push("status=yes"); else arrayFeatures.push("status=no");
		if (value.indexOf("r") > -1) arrayFeatures.push("resizable=yes"); else arrayFeatures.push("resizable=no");
	}
	// Window Name
	if (name != undefined) strName = name;
	// Make Features String
	for (i=0, max=arrayFeatures.length; i<max; i++) {
		if (i>0) strFeatures += ", ";
		strFeatures += arrayFeatures[i];
	}
	// Window Open
	if (strName == "") {
		window.open (url, "", strFeatures);
	} else {
		strName = window.open(url, strName, strFeatures);
		strName.focus();
	}
}

function clearBlank(str) {
	return str.replace(" ", "");
}