﻿
//if (GetCookie("kbid") != null) kbid = GetCookie("kbid"); else kbid = 0
function getCookieVal(offset) {var endstr = document.cookie.indexOf(";", offset);if (endstr == -1) endstr = document.cookie.length;return unescape(document.cookie.substring(offset, endstr));}
//function GetCookie(name) {
//    var arg = name + "="; var alen = arg.length;
//    if (document.cookie.toString()="") {
//        var clen = document.cookie.length;
//        var i = 0;
//        while (i < clen) {
//            var j = i + alen;
//            if (document.cookie.substring(i, j) == arg)
//                return getCookieVal(j);
//            i = document.cookie.indexOf(" ", i) + 1;
//            if (i == 0)
//                break;
//        }
//    }
//    return null;
// }
function load(values) {
    //if redirected from top affiliate page (remember to name the frame topAffs
    if (parent.frames['topAffs'] && !(parent.frames['topAffs'].location.search == '')) {
        values += '&' + parent.frames['topAffs'].location.search.substring(1);
        this.window.frames['page1'].location.href = values;
    }
    else if (!(top.window.location.search == '')) {
        values += '&' + top.window.location.search.substring(1);
        parent.frames[0].location.href = values;
    }
    else {
        values += "&kbid=0";
        parent.frames[0].location.href = values;
    }
}
function getvalue(name) { name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); var regexS = "[\\?&]" + name + "=([^&#]*)"; var regex = new RegExp(regexS); var results = regex.exec(window.location.href); if (results == null) return ""; else return results[1]; }
function aload() {}