﻿// JScript 文件
var kmid;
var kccount;
var mfcount;
var childdiv;
var hnum=4;
var rowheight=30;
var showAll=false;
var today=new Date();
window.onload=function(){
    childdiv=document.getElementById("child");    
    if(showAll){
        
    }
    
}
function showall(){
    today=new Date();
    
    var t=today.getSeconds();
    t=today.getMinutes()+t;
    var url="allkcdb.aspx?sort="+kmid+"&t="+t;
    showlink(url,kccount);
    return false;
}

function showmf(){
    today=new Date();
    var t=today.getSeconds();
    t=today.getMinutes()+t;
    var url="mfckdb.aspx?sort="+kmid+"&t="+t;
    showlink(url,mfcount);
    return false;
}

function showlink(url,height){
    var iframe=null;
    childdiv.style.visibility="visible";
    var nodes=childdiv.childNodes;
    if(nodes.length==0){
       iframe=document.createElement("iframe");
       childdiv.AppendElement(iframe);      
    }  
    else{
        iframe=nodes[0];    
    }  
    iframe.src=url;
    iframe.width=710;
    iframe.height=height;
        
}

