﻿function RenderD()
{
	document.write("<div id='ShowDialogSigninBeforeContinue_div' style='position: absolute; display: none; width: 400px; z-index: 10000; text-align:left;' class='modalPopup'>");
	document.write("<div>Many parts of ZeccoShare are available to signed in members only.</div>");
	document.write("<div style='margin-top: 1em;'><a id='ShowDialogSigninBeforeContinue_signinLink' href='/Signin.aspx?ReturnUrl=/zeccoshare/default.aspx'>&gt; Sign in now</a></div>");
	document.write("<div style='margin-top: 1em;'><a href='/user/Signup.aspx'>&gt; I am not a Zecco member yet and I want to sign up!</a></div>");
	document.write("<div style='margin-top: 2em;'><a href='javascript: void(0);' onclick='closeTabPopup(\"ShowDialogSigninBeforeContinue_div\"); return false;'>X CLOSE</a></div>");
	document.write("</div>");
}

function ShowDialogSigninBeforeContinue(sender)
{
    if(sender && sender.href)
    {
        var elem = document.getElementById('ShowDialogSigninBeforeContinue_signinLink');
	            
        if(elem && elem.href)
        {
            elem.href = '/Signin.aspx?ReturnUrl=' + sender.href;
        }
    }
    
    displayTabPopup('ShowDialogSigninBeforeContinue_div');
    return false;
}