function ch_abrirFlash(p_swf, p_wmode, p_widht, p_height, urlXML)
{
    var strHTTP = (("https:" == document.location.protocol) ? "https://" : "http://");

    urlXML = escape(urlXML);

    document.writeln('     <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="' + strHTTP + '://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" '+ (p_widht  > 0 ? " WIDTH="  + p_widht : "") + (p_height  > 0 ? " HEIGHT="  + p_height : "") +' id="dhtml_' + p_widht + '_' + p_height + '" LEFT="10" TOP="10" ALIGN="CENTER">');
    document.writeln('       <PARAM NAME="movie" VALUE="'+p_swf+'">');
    document.writeln('       <PARAM NAME="quality" VALUE="high">');
    document.writeln('       <PARAM NAME="play" VALUE="true">');
    document.writeln('       <PARAM NAME="loop" VALUE="true">');
    document.writeln('       <PARAM NAME="scale" VALUE="showall">');
    document.writeln('       <PARAM NAME="devicefont" VALUE="false">');
    document.writeln('       <PARAM NAME="wmode" VALUE="'+p_wmode+'">');
    document.writeln('       <PARAM NAME="bgcolor" VALUE="#FFFFFF">');
    document.writeln('       <PARAM NAME="menu" VALUE="true">');
    document.writeln('       <PARAM NAME="allowfullscreen" VALUE="true">');
    document.writeln('       <PARAM NAME="allowscriptaccess" VALUE="samedomain">');
    document.writeln('       <PARAM NAME=FlashVars VALUE="url='+ urlXML + '">');
    document.writeln('      <EMBED src="'+p_swf+'" allowFullScreen="true" wmode="'+p_wmode+'" allowScriptAccess="always" quality="high" bgcolor="#FFFFFF" '+ (p_widht  > 0 ? " WIDTH="  + p_widht : "") + (p_height  > 0 ? " HEIGHT="  + p_height : "") +' LEFT="10" TOP="10" name="dhtml_' + p_widht + '_' + p_height + '" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="' + strHTTP + '://www.macromedia.com/go/getflashplayer" flashvars="url='+ urlXML + '"></EMBED>');
    document.writeln('     </OBJECT>');
}
