function openReminder(winSize, url)
{
     var winpops = window.open(url,"ViSalusReminder","width=" + winSize + ",height=400,scrollbars=1")
     winpops.moveTo(0,0);
}

function openTour(winSize, url)
{
     var winpops = window.open(url,"ViNetTour","width=" + winSize + ",height=800,scrollbars=1")
     winpops.moveTo(0,0);
}

function openSevenRules(winSize, url)
{
     var winpops = window.open(url,"SevenRules","width=" + winSize + ",height=500,scrollbars=1")
     winpops.moveTo(0,0);
}

function openWindow(url, title, width, height, scrollbars)
{
     var winpops = window.open(url, title,"width=" + width + ",height=" + height + ",scrollbars=" + scrollbars + "")
     winpops.moveTo(0,0);
}


function linkFromReminder(path)
{
    window.opener.location = path;
}

function TaketheTour(val)
{
    switch(val)
    {
    case 1: // Health Tour
      newWindow = window.open ('/site/health/screen1.aspx', 'newWin','width=840,height=600,menubar=yes,scrollbars=yes') 
      newWindow.moveTo(0,0);
      break;
    case 2: // Income Tour
      newWindow = window.open ('/site/income/screen1.aspx', 'newWin','width=840,height=600,menubar=yes,scrollbars=yes') 
      newWindow.moveTo(0,0);
      break;
    case 3: // Opportunity Tour
      newWindow = window.open ('/site/income/screen1.aspx', 'newWin','width=840,height=600,menubar=yes,scrollbars=yes') 
      newWindow.moveTo(0,0);
      break;
    default: // Community Tour
      newWindow = window.open ('/site/social_network/screen1.html', 'newWin','width=840,height=600,menubar=yes,scrollbars=yes') 
      newWindow.moveTo(0,0);
    }    
}

function directToSignUpLink(path)
{
    if(window.opener != null)
    {
        if(path.length > 0)
        {
            if(window.opener.parent == null) window.opener.location = path;
            else window.opener.parent.location = path;
        }
        self.close();
    }
}