rnum2 = Math.floor ((Math.random() * 2))

var uagent, loc, thebr;
uagent = navigator.userAgent;
loc = uagent.indexOf("MSIE")
if (loc >= 0) {
	thebr = "IE"
} else {
	thebr = "NS"
}

 function doClear(theText) {
     if (theText.value == theText.defaultValue) {
         theText.value = ""
     }
 }

/* Copyright (C)1996 Web Integration Systems, Inc. DBA Websys, Inc.
   Copyright (C)1996 CdaNet WebSystems
*/
function scrollit_r2l(seed)
{
        var m1  =  "The Dreamtime - Welcomes you in Peace and fulfillment    ";
        var m2  = " The premiere Numerology site "; 
        var m3  = " on the web today......       Explore your wishes, desires, and compatibility.         ";
        var m4  = " Discover your destiny, your possible future, and your personality today!       ";
        var m5  = " From The Dreamtime...";
        
        var msg=m1+m2+m3+m4+m5
        var out = " ";
        var c   = 1;

        if (seed > 100) {
                seed--;
                var cmd="scrollit_r2l(" + seed + ")";
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (seed <= 100 && seed > 0) {
                for (c=0 ; c < seed ; c++) {
                        out+=" ";
                }
                out+=msg;
                seed--;
                var cmd="scrollit_r2l(" + seed + ")";
                    window.status=out;
                timerTwo=window.setTimeout(cmd,100);
        }
        else if (seed <= 0) {
                if (-seed < msg.length) {
                        out+=msg.substring(-seed,msg.length);
                        seed--;
                        var cmd="scrollit_r2l(" + seed + ")";
                        window.status=out;
                        timerTwo=window.setTimeout(cmd,100);
                }
                else {
                        window.status=" ";
                        timerTwo=window.setTimeout("scrollit_r2l(100)",75);
                }
        }
}

var expDays = 1; // number of days the cookie should last
var page = "http://profit-internet.com/masterprofitform.html";
var windowprops = "width=320,height=460,location=no,toolbar=no,menubar=no,scrollbars=no,resizable=no";
function GetCookie (name) { 
var arg = name + "="; 
var alen = arg.length; 
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 SetCookie (name, value) { 
var argv = SetCookie.arguments; 
var argc = SetCookie.arguments.length; 
var expires = (argc > 2) ? argv[2] : null; 
var path = (argc > 3) ? argv[3] : null; 
var domain = (argc > 4) ? argv[4] : null; 
var secure = (argc > 5) ? argv[5] : false; 
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) + 
((domain == null) ? "" : ("; domain=" + domain)) + 
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) { 
var exp = new Date(); 
exp.setTime (exp.getTime() - 1); 
var cval = GetCookie (name); 
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('count')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('count')
SetCookie('count',newcount,exp)
return count
}
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

var x = 9
var y = 1
function startClock(){
        x = x-y
        setTimeout("startClock()", 1000)
        if(x==0){
	       checkCount()
       x=10;
	}
}	

function checkCount() {
var count = GetCookie('count');
if (count == null) {
count=1;
SetCookie('count', count, exp);
win3=window.open(page, "", windowprops);
win3.blur()
window.focus()
}
else {
count++;
SetCookie('count', count, exp);
}
}

//specify page to pop-under 
// var popunder="http://www.lifechangetips.com/t.cgi/181474"
var popunder="http://www.invisiblepath.com/pm/click.php?APID=28&affID=0181474"
var once_per_session=1
// var popunder="http://www.33daystoonlineprofits.com/?16645"
// var popunder="http://www.centerpointe.com/links.cfm?ad=27079"
// GET A RANDOM NUMBER - between 1 and 2 TO DECIDE HOW TO DISPLAY THE PAGE LINKS
rnum2 = Math.floor ((Math.random() * 2))
anthrnum2 = Math.floor ((Math.random() * 2))

if (anthrnum2 == 0) {
	astpage = "ast_comp.html"
} else {
	astpage = "ast_comp2.html"
}


/***********************************************
* Reliably get the Window Width/Height
***********************************************/
var myWidth = 0, myHeight = 0;
function checkSize() {
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
}

