//To use - for onclick event
//<a href="/download/MusicnotesSuite.exe" title="Download!" class="logo suitelogo" onclick="return SetCookie('player','<%=CookieName%>',7)">Click to install the Suite</a>
function SetCookie(SetValue, Cookie, Days)
{
	var Value = SetValue
	var CookieName = Cookie
	var Exp = Days
	var now = new Date();
	then = now.getTime() + (Exp * 24 * 60 * 60 * 1000);
	now.setTime(then);
	exp = '; expires=' + now.toGMTString();
	document.cookie = CookieName + '=' + Value + exp + '; path=/;domain = musicontes.com';
	return true;
}

function SetCookiePopUp(SetValue, Cookie, Days, Msg)
{
	var Value = SetValue
	var CookieName = Cookie
	var Exp = Days
	var now = new Date();
	then = now.getTime() + (Exp * 24 * 60 * 60 * 1000);
	now.setTime(then);
	exp = '; expires=' + now.toGMTString();
	document.cookie = CookieName + '=' + Value + exp + '; path=/;domain = musicnotes.com';
	alert(Msg);
	return true;
}
