function fnGetEMString(strAddr)
{
	var strResult = "c" + "o" + "m";
	strResult = "d" + "b" + "k" + "t" + "e" + "." + strResult;
	strResult = strAddr + "@" + strResult;
	strResult = "m" + "a" + "i" + "l" + "t" + "o" + ":" + strResult;
	return strResult;
}

function fnChangeLocation(strPage,objThis)
{
	objThis.href=strPage + ".aspx";
}

function fnOpenFramedWindow(strPage,strTitle,strWidth,strHeight)
{
	var objWindow = window.open(strPage,strTitle,"width=" + strWidth + ",height=" + strHeight + ",top=100,left=100,menubar=0,scrollbars=1,titlebar=0,toolbar=0",true);
	objWindow.focus();
}

function fnOpenCheesmo(strIssue,blnIncludeDir)
{
	if (blnIncludeDir == false)
		fnOpenFramedWindow("viewissue.aspx?id=" + strIssue,"Cheesmo","725","600")		
	else 
		fnOpenFramedWindow("cheesmo/viewissue.aspx?id=" + strIssue,"Cheesmo","725","600");	
}

function fnOpenFanMail(strLetter,blnIncludeDir)
{
	if (blnIncludeDir == false)
		fnOpenFramedWindow("viewmail.aspx?letter=" + strLetter,"FanMail","650","600")		
	else 
		fnOpenFramedWindow("fanclub/viewmail.aspx?letter=" + strLetter,"FanMail","650","600");	
}

function fnOpenFlyer(strFlyer,blnIncludeDir)
{
	if (blnIncludeDir == false)
		fnOpenFramedWindow("viewflyer.aspx?flyer=" + strFlyer,"Flyer","725","600")		
	else 
		fnOpenFramedWindow("cheesmo/viewflyer.aspx?flyer=" + strFlyer,"Flyer","725","600");	
}

function fnOpenMadLib(strMadLibID,blnIncludeDir)
{
	if (blnIncludeDir == false)
		fnOpenFramedWindow("viewmadlib.aspx?madlibid=" + strMadLibID,"MadLib","725","600")		
	else 
		fnOpenFramedWindow("games/viewmadlib.aspx?madlibid=" + strFlyer,"MadLib","650","600");	
}

function fnOpenImgListing(strGalleryName)
{
	var objGallery = null;
	objGallery = window.open("gallery/viewgallery.aspx?galleryname=" + strGalleryName,"Gallery","width=400,height=550,menubar=0,scrollbar=1,titlebar=0,toolbar=0",true);
	objGallery.focus();
}

function fnOpenPrivacyPolicy(strDir)
{
	var objPolicy = null;
	objPolicy = window.open(strDir + "info/privacy.htm","Privacy","width=400,height=150,menubar=0,scrollbar=1,titlebar=0,toolbar=0",true);
	objPolicy.focus();
}