//email page to friend
var sHref = "<a class=green-bold href=javascript:EmailPage('" + document.location.href + "')>e-mail this page to a friend</a>"
function EmailPage(sUrl)
{
	window.open('/email/index.asp?url='+sUrl,'','width=390,height=480,scrollbars=0,resizable=no,status=yes,location=no')	
}
//Pop-up Ad Tag
function PopUpAd(sUrl, lHeight, lWidth)
{
	window.open(sUrl,'PopUpAd','width=' + lWidth + ',height=' + lHeight + ',scrollbars=0,resizable=no,status=yes,location=no')	
}
/*********************************************
*	Cookie Code for Survey
**********************************************/
function ShowSurvey()
{
	var survey = GetCookie("survey");
	if(!survey)
	{
		window.open('/casino.asp','','width=720,height=300,scrollbars=no,resizable=no,status=yes,location=no');
		SetCookie('survey', '1');
	}
}
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));
}
function SetCookie(name,value,expires,path,domain,secure) 
{
    document.cookie = name + "=" +escape(value) +
        ( (expires) ? ";expires=" + expires.toGMTString() : "") +
        ( (path) ? ";path=" + path : "") + 
        ( (domain) ? ";domain=" + domain : "") +
        ( (secure) ? ";secure" : "");
}


//caller to initialize
//ShowSurvey2()

function ShowSurvey2()
//	{
//    var survey = GetCookie("survey");

//    if (survey == null) 
		{
		window.open('/survey/survey.asp','','width=500,height=400,scrollbars=yes,resizable=no,status=yes,location=no');
		}
//	}
