// Cookie functions // ~~~~~~~~~~~~~~~~ function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function getCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf(prefix); if (begin == -1) return null; var end = document.cookie.indexOf(";", begin); if (end == -1) end = dc.length; return unescape(dc.substring(begin + prefix.length, end)); } function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } function fixDate(date) { var base = new Date(0); var skew = base.getTime(); if (skew > 0) date.setTime(date.getTime() - skew); } // ~~~~~~~~~~~~~~~~~~~~~~~ // End of cookie functions function replaceString(oldS,newS,fullS) { // Replaces oldS with newS in the string fullS for (var i=0; i'); page=replaceString("http://","",page); page=replaceString("https://","",page); page=replaceString("www.","",page); page=replaceString("?id=","?",page); page=replaceString("?id","?",page); if (page.lastIndexOf("?") <= -1) { urlpart=page.substring(0, page.length); sponsorid=''; } else { urlpart=page.substring(0, page.lastIndexOf("?")); sponsorid=page.substring(page.lastIndexOf("?")+1, page.length); } if (!sponsorid && getCookie("sponsorid")) sponsorid=getCookie("sponsorid"); //sponsorid=""; document.write('
'); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write(''); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write('
'); document.write('
ID#
'); document.write(' '); // document.write(' '); document.write('
PASSWORD
'); document.write(' '); document.write('
'); document.write(''); document.write(' '); document.write('
'); document.write('
'); document.write(' '); document.write(' '); document.write(' '); document.write(' '); document.write(' Powered by MLMSP '); document.write(' '); document.write(' '); document.write(''); document.write('
'); // Set the cookie // ~~~~~~~~~~~~~~ //document.write('1111'); var cookiename="loginform" + "_counter"; var now = new Date(); fixDate(now); now.setTime(now.getTime() + 365 * 24 * 60 * 60 * 1000); var visits = getCookie(cookiename); var w; var windowX = (screen.availWidth)-70; var windowY = (screen.availHeight)-120; // -70 else the height is not stable var popup_left = 10; var popup_top = windowY + 500; //var beIE = document.all?true:false; if (!visits) visits=1; else visits++; setCookie("sponsorid", sponsorid, now);