function flash(archivo, ancho, alto, version, modo, id)
{
var quality="high";
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width='+ancho+' height='+alto+' id='+id+'>\n');
 document.write('<param name="movie" value='+archivo+'>\n');
 document.write('<param name="quality" value='+quality+'>\n');
 document.write('<param name="wmode" value='+modo+'>\n');
 document.write('<param name="menu" value=false >\n');
 document.write('<embed src='+archivo+' wmode='+modo+' menu=false quality='+quality+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+' swLiveConnect=true name='+id+'></embed>');
 document.write('</object>\n');
}
function flash2(archivo, ancho, alto, version, modo, id)
{
var quality="high";
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+'" width='+ancho+' height='+alto+' id='+id+'>\n');
 document.write('<param name="movie" value='+archivo+'>\n');
 document.write('<param name="quality" value='+quality+'>\n');
 document.write('<param name="wmode" value='+modo+'>\n');
 document.write('<embed src='+archivo+' wmode='+modo+' quality='+quality+' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width='+ancho+' height='+alto+' swLiveConnect=true name='+id+'></embed>');
 document.write('</object>\n');
}
function htmlData(url, qStr)
{
    if (url.length==0)
    {
        document.getElementById("txtResult").innerHTML=""; 
        return;
    }
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null)
    {
        alert ("Browser does not support HTTP Request");
        return;
    }

    url=url+"?"+qStr; 
    url=url+"&sid="+Math.random();
    xmlHttp.onreadystatechange=stateChanged;
    xmlHttp.open("GET",url,true) ;
    xmlHttp.send(null);
}
function startUpload(){
      document.getElementById('f1_upload_process').style.visibility = 'visible';
      document.getElementById('f1_upload_form').style.visibility = 'hidden';
      return true;
}

function stopUpload(success){
      var result = '';
      if (success == 1){
         result = '<span class="msg"><h2>Archivo subido con exito!</h2><\/span><br/>';
      }
      else 
	  {
         result = '<span class="emsg"><h2>Ocurrio un error durante la subida!</h2></span><br/><br/>';
      }
      document.getElementById('f1_upload_process').style.visibility = 'hidden';
      document.getElementById('f1_upload_form').innerHTML = result;
      document.getElementById('f1_upload_form').style.visibility = 'visible';      
      return true;   
}
