function show_Flash(fichero, ancho, alto){
    document.write('<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="'+ancho+'" height="'+alto+'" id="cumplePatri" align="middle">\n');
    document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
    document.write('<param name="movie" value="'+fichero+'" /><param name="wmode" value="transparent" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="'+fichero+'" quality="high" bgcolor="#ffffff" wmode="transparent" width="'+ancho+'" height="'+alto+'" name="flashswf" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
    document.write('</object>\n');
}
function show_crystalViewer(){
    document.write('<OBJECT ID="CRViewer"   CLASSID="CLSID:C4847596-972C-11D0-9567-00A0C9273C2A"   WIDTH="100%" HEIGHT="100%" CODEBASE="/viewer/activeXViewer/activexviewer.cab#Version=8,0,0,224">\n');
    document.write('<PARAM NAME="EnableRefreshButton" VALUE=1>\n');
    document.write('<PARAM NAME="EnableGroupTree" VALUE=1>\n');
    document.write('<PARAM NAME="DisplayGroupTree" VALUE=1>\n');
    document.write('<PARAM NAME="EnablePrintButton" VALUE=1>\n');
    document.write('<PARAM NAME="EnableExportButton" VALUE=0>\n');
    document.write('<PARAM NAME="EnableDrillDown" VALUE=1>\n');
    document.write('<PARAM NAME="EnableSearchControl" VALUE=0>\n');
    document.write('<PARAM NAME="EnableAnimationControl" VALUE=0>\n');
    document.write('<PARAM NAME="EnableZoomControl" VALUE=1>\n');
    document.write('</OBJECT>\n');
}

function show_webScan(adjunto){
    if (adjunto != "S")
        document.write('<OBJECT ID="WebScan" width="100%" height="360" class="tab"\n');
    else
        document.write('<OBJECT ID="WebScan" width="100%" height="380" class="tab"\n');
    document.write('CLASSID="CLSID:542AD82A-B00A-4281-BA60-02CA3E033A18"\n');
    document.write('CODEBASE="../componentes/WebScan.CAB#version=1,3,0,5">\n');
    document.write('</OBJECT>\n');
}

function show_comboBox(id, width, height, rows, cols, backcolor, forecolor,caption){
   if (id==undefined)     id="combobox";
   if (width==undefined)  width="300";
   if (height==undefined) height="20";
   if (rows==undefined) rows="10";
   if (cols==undefined) cols="1";
   if (backcolor==undefined) backcolor="16777215";
   if (forecolor==undefined) forecolor="0";
   document.write('<OBJECT id="'+id+'" WIDTH="'+width+'" BORDER=0 HEIGHT="'+height+'" CLASSID="CLSID:8BD21D30-EC42-11CE-9E0D-00AA006002F3">\n');
   document.write('<PARAM NAME="VariousPropertyBits" VALUE="746604571">\n');
   document.write('<PARAM NAME="DisplayStyle" VALUE="3">\n');
   document.write('<PARAM NAME="Size" VALUE="2540;635">\n');
   document.write('<PARAM NAME="MatchEntry" VALUE="1">\n');
   document.write('<PARAM NAME="MatchRequired" VALUE="1">\n');
   document.write('<PARAM NAME="ShowDropButtonWhen" VALUE="2">\n');
   document.write('<PARAM NAME="FontName" VALUE="Verdana">\n');
   document.write('<PARAM NAME="FontCharSet" VALUE="0">\n');
   document.write('<PARAM NAME="FontPitchAndFamily" VALUE="2">\n');
   document.write('<PARAM NAME="SpecialEffect" VALUE="3">\n');
   document.write('<PARAM NAME="ListStyle" VALUE="1">\n');
   document.write('<PARAM NAME="DropButtonStyle" VALUE="1">\n');
   document.write('<PARAM NAME="ShowDropButtonWhen" VALUE="0">\n');
   document.write('<PARAM NAME="ListRows" VALUE="'+rows+'">\n');
   document.write('<PARAM NAME="ColumnCount" VALUE="'+cols+'">\n');
   document.write('<PARAM NAME="BackColor" VALUE="'+backcolor+'">\n');
   document.write('<PARAM NAME="ForeColor" VALUE="'+forecolor+'">\n');
   document.write('<PARAM NAME="Value" VALUE="'+caption+'">\n');
   document.write('</OBJECT>\n');

}

function show_button(id, caption, width, height){
   document.write('<OBJECT ID="'+id+'" height="'+height+'" width="'+width+'" CLASSID="CLSID:D7053240-CE69-11CD-A777-00DD01143C57">\n' );
   document.write('   <PARAM NAME="FontName" VALUE="Verdana">\n');
   document.write('   <PARAM NAME="caption" VALUE="'+caption+'">\n');
   document.write('   <PARAM NAME="MousePointer" VALUE="1">\n');
   document.write('   <PARAM NAME="ParagraphAlign" VALUE="3">\n');
   document.write('</OBJECT>\n');
}

function show_chart(id,  width, height, rows, cols, rownames, colnames, data){
  document.write( '<OBJECT CODEBASE="http://activex.microsoft.com/controls/iexplorer/x86/iechart.cab#Version=4,71,115,0"');
  document.write( 'CLASSID="CLSID:FC25B780-75BE-11CF-8B01-444553540000"  id="'+id+'"  width="'+width+'"   height="'+height+'"  align=center   hspace=5 vspace=5>');
  document.write( '<PARAM NAME="_ExtentX"   VALUE="5821">')
  document.write( '<PARAM NAME="_ExtentY" VALUE="4101">')
  document.write( '<PARAM NAME="Rows" VALUE="'+rows+'">')
  document.write( '<PARAM NAME="Columns" VALUE="'+cols+'">')
  document.write( '<PARAM NAME="ChartType" VALUE="14">')
  document.write( '<param name="RowNames" value="'+rownames+'">')
  document.write( '<param name="ColumnNames" value="'+colnames+'">')
  document.write(data);
  document.write( '<PARAM NAME="HorizontalAxis" VALUE="0">')
  document.write( '<PARAM NAME="VerticalAxis" VALUE="0">')
  document.write( '<PARAM NAME="hgridStyle" VALUE="1">')
  document.write( '<PARAM NAME="vgridStyle" VALUE="1">')
  document.write( '<PARAM NAME="ColorScheme" VALUE="2">')
  document.write( '<PARAM NAME="BackStyle" VALUE="1">')
  document.write( '<PARAM NAME="Scale" VALUE="100">')
  document.write( '<PARAM NAME="DisplayLegend" VALUE="1">')
  document.write( '<PARAM NAME="BackColor" VALUE="16777215">')
  document.write( '<PARAM NAME="ForeColor" VALUE="32768">')
  document.write( '</OBJECT>');
}
