// JavaScript Document

var popWindow;
function openwindw(vURL){
	if (!popWindow || popWindow.closed) {
   		popWindow=window.open(vURL,"windw","toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=800,height=600");
	} else {
    	popWindow.focus();
	}
}

function showQuestionMarkText(){
	document.getElementById("QuestionMarkText").style.display = ""; 
	document.getElementById("QuestionMarkImage").style.display = "none"; 
	document.getElementById("QuestionHint").style.display = "none"; 
}

function showSmileText(){
	document.getElementById("SmileText").style.display = ""; 
	document.getElementById("SmileImage").style.display = "none"; 
	document.getElementById("SmileHint").style.display = "none"; 
}

function showDollarText(){
	document.getElementById("DollarText").style.display = ""; 
	document.getElementById("DollarImage").style.display = "none"; 
	document.getElementById("DollarHint").style.display = "none"; 
}

function showSmartHome(){
	document.getElementById("SmartAtHome").style.display = ""; 
	document.getElementById("showSmartAtHome_Link").style.display = "none";	
	document.getElementById("hideSmartAtHome_Link").style.display = "";	
	hideSmartHealth();
	hideSmartWallet();
	hideSmartWork();
	hideSmartPlay();
	hideSmartLife();
	hideSmartParenting();
	
}

function hideSmartHome(){
	document.getElementById("SmartAtHome").style.display = "none"; 
	document.getElementById("showSmartAtHome_Link").style.display = "";	
	document.getElementById("hideSmartAtHome_Link").style.display = "none";	
}

function showSmartHealth(){
	document.getElementById("SmartAtHealth").style.display = ""; 
	document.getElementById("showSmartAtHealth_Link").style.display = "none";	
	document.getElementById("hideSmartAtHealth_Link").style.display = "";
	hideSmartHome();
	hideSmartWallet();
	hideSmartWork();
	hideSmartPlay();
	hideSmartLife();
	hideSmartParenting();
}

function hideSmartHealth(){
	document.getElementById("SmartAtHealth").style.display = "none"; 
	document.getElementById("showSmartAtHealth_Link").style.display = "";	
	document.getElementById("hideSmartAtHealth_Link").style.display = "none";	
}

function showSmartWallet(){
	document.getElementById("SmartAtWallet").style.display = ""; 
	document.getElementById("showSmartAtWallet_Link").style.display = "none";	
	document.getElementById("hideSmartAtWallet_Link").style.display = "";
	hideSmartHome();
	hideSmartHealth();
	hideSmartWork();
	hideSmartPlay();
	hideSmartLife();
	hideSmartParenting();
}

function hideSmartWallet(){
	document.getElementById("SmartAtWallet").style.display = "none"; 
	document.getElementById("showSmartAtWallet_Link").style.display = "";	
	document.getElementById("hideSmartAtWallet_Link").style.display = "none";	
}

function showSmartWork(){
	document.getElementById("SmartAtWork").style.display = ""; 
	document.getElementById("showSmartAtWork_Link").style.display = "none";	
	document.getElementById("hideSmartAtWork_Link").style.display = "";	
	hideSmartHome();
	hideSmartHealth();
	hideSmartWallet();
	hideSmartPlay();
	hideSmartLife();
	hideSmartParenting();
}

function hideSmartWork(){
	document.getElementById("SmartAtWork").style.display = "none"; 
	document.getElementById("showSmartAtWork_Link").style.display = "";	
	document.getElementById("hideSmartAtWork_Link").style.display = "none";	
}

function showSmartPlay(){
	document.getElementById("SmartAtPlay").style.display = ""; 
	document.getElementById("showSmartAtPlay_Link").style.display = "none";	
	document.getElementById("hideSmartAtPlay_Link").style.display = "";	
	hideSmartHome();
	hideSmartHealth();
	hideSmartWallet();
	hideSmartWork();
	hideSmartLife();
	hideSmartParenting();
}

function hideSmartPlay(){
	document.getElementById("SmartAtPlay").style.display = "none"; 
	document.getElementById("showSmartAtPlay_Link").style.display = "";	
	document.getElementById("hideSmartAtPlay_Link").style.display = "none";	
}

function showSmartLife(){
	document.getElementById("SmartAtLife").style.display = ""; 
	document.getElementById("showSmartAtLife_Link").style.display = "none";	
	document.getElementById("hideSmartAtLife_Link").style.display = "";
	hideSmartHome();
	hideSmartHealth();
	hideSmartWallet();
	hideSmartWork();
	hideSmartPlay();
	hideSmartParenting();
}

function hideSmartLife(){
	document.getElementById("SmartAtLife").style.display = "none"; 
	document.getElementById("showSmartAtLife_Link").style.display = "";	
	document.getElementById("hideSmartAtLife_Link").style.display = "none";	
}

function showSmartParenting(){
	document.getElementById("SmartAtParenting").style.display = ""; 
	document.getElementById("showSmartAtParenting_Link").style.display = "none";	
	document.getElementById("hideSmartAtParenting_Link").style.display = "";
	hideSmartHome();
	hideSmartHealth();
	hideSmartWallet();
	hideSmartWork();
	hideSmartPlay();
	hideSmartLife();
}

function hideSmartParenting(){
	document.getElementById("SmartAtParenting").style.display = "none"; 
	document.getElementById("showSmartAtParenting_Link").style.display = "";	
	document.getElementById("hideSmartAtParenting_Link").style.display = "none";	
}




function checkCookiesEnabled()
{
 /* check for a cookie */
  if (document.cookie == "") 
  {
    /* if a cookie is not found - alert user -
     change cookieexists field value to false */
    alert("In order to use the forum, your brower's cookies need to be enabled.");

    /* If the user has Cookies disabled an alert will let him know 
        that cookies need to be enabled to log on.*/ 

    document.Form1.cookieexists.value ="false"  
  } else {
   /* this sets the value to true and nothing else will happen,
       the user will be able to log on*/
    document.Form1.cookieexists.value ="true"
  }
}

/* Set a cookie to be sure that one exists.
   Note that this is outside the function*/
document.cookie = 'killme' + escape('nothing')
// -->

