function PreviewCode()
{
	var code = "<embed ";
	if (parent.document.videoform.fileurl.value != ""){ code += "src=\"" + parent.document.videoform.fileurl.value + "\" "; }
	if (parent.document.videoform.width.value != "") { code += "width=\"" + parent.document.videoform.width.value + "\" "; }
	if (parent.document.videoform.height.value != "") { code += "height=\"" + parent.document.videoform.height.value + "\" "; }
	if (parent.document.videoform.filetype.value != "") { code += "type=\"" + parent.document.videoform.filetype.value + "\"></embed>"; }
	document.write(code);
}

function GenCode()
{
	var showcode = "<embed ";
	if (parent.document.videoform.fileurl.value != ""){ showcode += "src=\"" + parent.document.videoform.fileurl.value + "\" "; }
	if (parent.document.videoform.width.value != "") { showcode += "width=\"" + parent.document.videoform.width.value + "\" "; }
	if (parent.document.videoform.height.value != "") { showcode += "height=\"" + parent.document.videoform.height.value + "\" "; }
	if (parent.document.videoform.filetype.value != "") { showcode += "type=\"" + parent.document.videoform.filetype.value + "\"></embed>"; }
	document.videoform.videocode.value = showcode;
	Wildfire.divWildfirePost.applyConfig(pconf);
}
