/* Contents based on general descriptions from Http://www.w3c.org and the following:   */
/* http://positioniseverything.net provided several ideas or fixes                     */
/* http://en.wikipedia.org/wiki/Cascading_Style_Sheets provided several ideas.         */
/*    in particular color schemes and box showing and closing content index            */ 
/* http://www.mozilla.org    (top menu - since the jello mold was not working          */
/* The various parts of the contents of style sheet and function library is a mixture  */
/* of the above and extensions by experimentation                                      */
/*                                                                                     */
/* Revision history for EpiData.dk : Created by Jens M.Lauritsen                       */

/* contents of this are javascript routines for epidata.dk                             */
/* Version 1.0     Date: Jan. 17th 2006                                                */
/* version 1.1 Date: Dec 7th 2006 for Chinese version of epidata frontpage             */
/*                                                                                     */


function popup(url,name,h,w,l) {
  window.open(url,name,'top=25 , left= ' + l + ', Height=' + h + 'px,Width='+w +'px, alwaysRaised=yes,innerHeight=0,outerHeight=0,dependent=yes');
    }

function s(tekst) {
    document.write(tekst);
}


function showdate (dt) {
  var d1 =new Date(dt).toUTCString();
  document.write(d1); 
}

function foot(pdf) {
        s('<div id="foot"><hr>');  
    if (pdf=="pdf") {
    s('<p class="center">用Acrobat Reader阅读PDF文件(V4/later) <A HREF="http://www.adobe.com/products/acrobat/readstep.html">available here (free)</A></p>');
    }
    s('<p class="center">除非另有声明，所有文件版权归属于EpiData Association 2000-2008。<A HREF="about.htm#disclaim">声明和GNU许可</A><br>Revised ');
        showdate(document.lastModified);
        s('</p></div>'); 
}

/*  place for a fixed red square      s('<div id="construction">In construction 建设中</div>');  */
s('<div id="construction">建设中</div>');

