var userName = new Array();  
userName[0]="248wealth"; 
userName[1]="248malbez"; 
userName[2]="248sfi";
userName[3]="248lab"; 
userName[4]="248pips"; 
userName[5]="248members";
userName[6]="248securepay"; 
userName[7]="247highway"; 
userName[8]="248web";
userName[9]="248host";
userName[10]="infolookers";
userName[11]="248webceo";
userName[12]="248wisewizard";

var userNameFull = new Array(); 
userNameFull[0]="E-Mail Us"; 
userNameFull[1]="The Work-at-Home Wizard";
userNameFull[2]="SFI"; 
userNameFull[3]="Leisure Audio Books";
userNameFull[4]="PlugInProfits"; 
userNameFull[5]="E-mail our Subscription Manager";
userNameFull[6]="PayPal"; 
userNameFull[7]="www.247highway.com";
userNameFull[8]="E-mail our Webmaster";
userNameFull[9]="Our Hosting Service";
userNameFull[10]="E-mail our InfoLookers Subscription Manager";
userNameFull[11]="WebCeo";
userNameFull[12]="E-mail the WiseWizard";

var userSubject= new Array()
userSubject[0]="Query from 248WealthWizards Website"; 
userSubject[1]="Query from 248WealthWizards Website";
userSubject[2]="SFI Query"; 
userSubject[3]="Leisure Audio Books Query";
userSubject[4]="PlugInProfits Query"; 
userSubject[5]="Query from Member - Name: please add your name here";
userSubject[6]="PayPal Payment Query from 248wealthwizards website"; 
userSubject[7]="Query for Web Development from 247Highway.com";
userSubject[8]="Support Query for 248WealthWizards Webmaster";
userSubject[9]="Query about Web Hosting Services";
userSubject[10]="Query from InfoLookers Member - Name: please add your name here";
userSubject[11]="Query Web CEO information";
userSubject[12]="Query for the WiseWizard - Name: please add your name here";

var siteName = "248wealthwizards.com?subject=";
i=0;
do userName[i]='<a href=\"mailto:' + userName[i] + '@' + siteName + userSubject[i] +'\">' + userNameFull[i] + '</a>';
while(userName[++i]);
/* **********************************************************************/

// OPEN NEW MYWINDOW
var abc;
function mywindow(myurl, myname, nwidth){
abc=window.open(myurl, myname, nwidth);
abc.focus();
return false;
}


// OPEN MY EXIT PAGE WINDOW
var abc;
function myExitWindow() {
abc=window.open("exitpage01.html");
maxWindow(abc);
abc.focus();
return false;
}

//SIGNUP SCREEN WINDOW
var signupwindow;
function mysignupwindow(signuppage)
{
         var windowFeatures="left=40,top=50,width=920,height=525 menubar=no,toolbar=no,statusbar=no,scrollbars,resizable";
         signupwindow = window.open(signuppage,"signupnumbers",windowFeatures);
         signupwindow.focus();
         return false;
}


//SCROLLING NEW WINDOW
var myscrollwindow;
function myscrollwindow(myscrollpage)
{
         var windowFeatures="left=25,top=50,width=950,height=550,scrollbars,menubar=yes,toolbar=yes,resizable";
         myscrollwindow = window.open(myscrollpage,"myscrollnumbers",windowFeatures);
         myscrollwindow.focus();
         return false;
}

//MY VIDEO WINDOW
var myvideowindow;
function myvideowindow(cURL, cMovie)
{
         var videowindowFeatures="left=25,top=50,width=475,height=475,scrollbars=no,menubar=no,toolbar=no,resizable";
         myvideowindow = window.open("videopage","myvideonumbers",videowindowFeatures);
         myvideowindow.focus();
 		URL= cURL;
/*<script src=cMovie type="text/javascript"></script>*/
        return false;
}


/********************************************************
* Hide status bar msg II script- by javascriptkit.com 
* Visit JavaScript Kit (http://javascriptkit.com) for script
* Credit must stay intact for use automatically executes this when reading the js file
************************************************* */
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus

/***************************************************
* this writes the WizWords Cookie
*************************************************/

/************ looks for the wizwords and wizUser cookie to see if visitor has already subscribed ******************/
function GetCookie(name)
{
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}

/********** sets the values for the wizwords cookie ********************************/
function DoSetCookie(name,value,expires,path,domain,secure)
{
    document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}

/********* writes a permanent wizwords cookie for subscription **************************/
function SetPermCookie (name, value){
	var now = new Date(); 
	var expval = new Date(); 
	expval.setTime(now.getTime() + (999 *24*3600000));
	DoSetCookie (name, value, expval, "/");
	DoSetCookie("wizUser", document.fForm.category2.value,expval,"/");
  
  return true;
}

/************* checks to see if wizwords cookie exits if it does bypasses the signupform and goes to thanks html page****/
/*function LoadWizwords (){*/
/*	var name = 'wizwords';*/
/*	if (name != ''  &&  GetCookie(name) == 1) { window.open("ww02tnxpge.html")};*/
/*}*/


/************* checks to see if 248wizwords cookie exits if it does bypasses the signupform and goes to thanks html page****/
function LoadWizwords (cGoHere){
var name = 'wizwords';
if (name != ''  &&  GetCookie(name) == 1) { document.location.replace(cGoHere)};
}

/************* checks to see if INFOLOOKERS cookie exits if it does bypasses the signupform and goes to thanks html page****/
function LoadInfolookers (cGoHere){
var name = 'infolookers';
if (name != ''  &&  GetCookie(name) == 1) { document.location.replace(cGoHere)};
}

/************* checks to see if WIZ NEWSLETTER cookie exits if it does bypasses the signupform and goes to thanks html page****/
function LoadWiznewsletter (cGoHere){
var name = 'wiznewsletter';
if (name != ''  &&  GetCookie(name) == 1) { document.location.replace(cGoHere)};
}

/***** checks to see if wizUser cookie has been set and uses name or uses friend in html text*********/
function myGetUser(){
var cName = 'Friend';

if (GetCookie("wizUser") == null) {
   return (cName); 
   } 
else {
	 return (GetCookie("wizUser"));
	 }
} 

//TO FORCE A PAGE INTO THE FRAME LAYOUT FOR MAIN 248 FRONT PAGE WORK AT HOME HTML
function frameMe(cURL){
    //name of the frameset page (be sure to add path info)
    var frameset = cURL;

    //name of the frame to load document into
    var frame = "mainframe";

    page = new String(self.document.location.pathname);
//alert(page);
    if(window.name != frame){
      var contents = frameset + "?" + page + "&" + frame;
//alert(contents);
      top.location.replace(contents);
    }
    return;
  }
  
  
  
/*TO OPEN A NEW WINDOW WITH AN EMAIL ADDRESS TELLAFRIEND*/
var smallwindow;
function mySmallWindow(smallpage)
{
         var windowFeatures="left=0,top=300,width=900,height=400";
         smallwindow = window.open(smallpage,"smallinfo",windowFeatures);
         smallwindow.focus();
         return false;
}


/*PRELOADING IMAGES WHERE NECESSARY REST OF SCRIPT IN DOC*/
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
//

/*OPEN A NEW WINDOW TO DISPLAY INDIVIDUAL SIGNUP PAGES AND LP STUFF*/
var maxwindow;
function mymaxwindow(mypage)
{
         var windowFeatures="scrollbars,menubar,left=1,top=1,width=1024,height=768,resizable";
         maxwindow = document.location.replace(mypage,"mydetails",windowFeatures);
         maxwindow.focus();
         return false;
}

//TO OPEN AND CLOSE THUMBNAIL VIEWS
var farmpicswindow;
function farmpicswindow(showpic) {
 		 var winTop= "1"
		 var winLeft=(screen.height/2) -323;
		 var windowFeatures="width=950,height=600,";
		 windowFeatures=windowFeatures +"left=" + winLeft + ",";
		 windowFeatures=windowFeatures + "top=" + winTop;
 		 var farmpicswindow=window.open(showpic,"farmpicswindow",windowFeatures);
		 farmpicswindow.focus();
		 return false;
		 }

		 

/***********************************************
* Disable "Enter" key in Form script- By Nurul Fadilah(nurul@REMOVETHISvolmedia.com)
* This notice must stay intact for use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
                
function handleEnter (field, event) {
		var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
		if (keyCode == 13) {
			var i;
			for (i = 0; i < field.form.elements.length; i++)
				if (field == field.form.elements[i])
					break;
			i = (i + 1) % field.form.elements.length;
			field.form.elements[i].focus();
			return false;
		} 
		else
		return true;
	}      

/****************TO PUT IN THE DATE*/
function myDate() {
today=new Date();
today.setDate(today.getDate()-3);
day=today.getDate();
year=today.getFullYear();
month=today.getMonth()+1;
if (day==1) end=("st");
else if (day==2) end=("nd");
else if (day==3) end=("rd");
else if (day==21) end=("st");
else if (day==22) end=("nd");
else if (day==23) end=("rd");
else if (day==31) end=("st");
else end=("th");
if (month==1) name=("January");
else if (month==2) name=("February");
else if (month==3) name=("March");
else if (month==4) name=("April");
else if (month==5) name=("May");
else if (month==6) name=("June");
else if (month==7) name=("July");
else if (month==8) name=("August");
else if (month==9) name=("September");
else if (month==10) name=("October");
else if (month==11) name=("November");
else name=("December");
/*if (year<100) year="19" + year;*/
document.write(name + " " + day + end + ", " + year);
}