All pastes #994935 Raw Edit

Unnamed

public text v1 · immutable
#994935 ·published 2008-04-23 19:25 UTC
rendered paste body
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>El Diario Austral de Valdivia</title><!-- custom -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
  body { margin:0px; padding:0px; border:none; }
</style>
</head>
<body>
<script language="JavaScript" src="/certifica/certifica.js"></script>
<script language="javascript">
<!--
  function getParam(param) {
    var url = document.URL;
    var start = url.indexOf(param + '=');
    if (start > 0) {
      var end = url.indexOf('&',start);
      if (end < 0) {
        end = url.length;
      };
      return url.substring(start + 1 + param.length, end);
    }else{
      return ''; 
    };
  }; // getParam
  
  function zeroLead(texto) {
    if (texto.length < 2) {
      return '0' + texto;
    }else{
      return texto;
    };
  }; // zeroLead
  
  function writeContents() {
    var num = 13957;     // <!-- custom -->
    var cli = 'ausval'; // <!-- custom -->
    var sec = getParam('sec');
    var ts  = getParam('ts');
    var edi = getParam('fp');
    var pag = getParam('pag');

    window.moveTo(0,0);
    window.resizeTo(screen.width,screen.height);
    window.focus();

    var url = 'visor_pdp_1.0.swf';
    var ancho = (navigator.appName != "Microsoft Internet Explorer")? window.innerWidth : (document.body.clientWidth);
    var alto = (navigator.appName != "Microsoft Internet Explorer")? window.innerHeight : (document.body.clientHeight);

    ancho -= 20; // Margen para el scroll.
    var flashvars = 'W='+ancho+'&H='+alto+'&EDI='+edi+'&PAG='+pag;
    if (ancho < 800) { ancho = 800; };
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"');
    document.write('  codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"');
    document.write('  width="'+ancho+'" height="'+alto+'" id="pdp" align="top">');
    document.write('  <param name="flashvars" value="'+flashvars+'">');
    document.write('  <param name="salign" value="lt">');
    document.write('  <param name="allowScriptAccess" value="sameDomain">');
    document.write('  <param name="movie" value="'+url+'">');
    document.write('  <param name="loop" value="false">');
    document.write('  <param name="menu" value="false">');
    document.write('  <param name="quality" value="high">');
    document.write('  <param name="bgcolor" value="#ffffff">');
    document.write('  <embed src="'+url+'"');
    document.write('    loop="false" menu="false" quality="high"');
    document.write('    salign="lt"');
    document.write('    bgcolor="#ffffff" width="'+ancho+'" height="'+alto+'"');
    document.write('    flashvars="'+flashvars+'"');
    document.write('    name="pdp" align="top" allowScriptAccess="sameDomain"');
    document.write('    type="application/x-shockwave-flash"');
    document.write('    pluginspage="http://www.macromedia.com/go/getflashplayer">');
    document.write('</object>');

    certifica(num,cli,'papel_'+pag);
    document.write("<img src=\"/simplestats.sst?c=" + cli + "&s=" + sec + "&p=" +'papel_'+pag+ "\" name=\"sst_img\" width=\"1\" height=\"1\">");
  }; // writeContents

  writeContents();
//-->
</script>
</body>
</html>