function WildGames1(Game)
	{
	('WildGames.cfm?Game='+Game);
	}
function WildGames(Game)
	{
	OpenWin=window.open('WildGames.cfm?Game='+Game, "WildGames", "location=0,status=no,toolbar=no,menubar=no,resizable=no,directories=no,scrollbars=no,copyhistory=0,width=760,height=500");
	 WildGames.focus();
	}
	
function PrintVIPPass(EventID)
	{
	var W = 500;
	var H = 250;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var PrintVIPPassWin = window.open("PrintVIPPass.cfm?EventID="+EventID, "PrintVIPPassWin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	PrintVIPPassWin.focus();
	}

function VIPPassInfo()
	{
	var W = 400;
	var H = 300;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var VIPPassInfoWin = window.open("VIPPassInfo.cfm", "VIPPassInfoWin", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	VIPPassInfoWin.focus();
	}
	
function ViewRadio()
	{
	OpenWin=window.open('ViewRadio.cfm', "Radio", "location=0,status=no,toolbar=no,menubar=no,resizable=no,directories=no,scrollbars=no,copyhistory=0,width=270,height=263");
	}

function WildMedia(M)
	{
	var W = 570;
	var H = 420;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildMediaPlayer = window.open("ViewVideo2.cfm?M="+M, "WildMediaPlayer","toolbar=0 ,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildMediaPlayer.focus();
	}

function WVChata()
	{
	var W = 600;
	var H = 460;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WVChat = window.open("/WVChat/WVChatIntro.cfm", "WVChat", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WVChat.focus();
	}

function WVChat()
	{
	var W = 600;
	var H = 440;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildChat = window.open("/chatindex.cfm", "WildChat", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildChat.focus();
	}

function AdWhois(IP)
	{
	var W = 450;
	var H = 300;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var AdWhois = window.open("AdWhois.cfm?IP="+IP, "AdWhois", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	AdWhois.focus();
	}
	
function ChangeMenuCell(MyTable,BGColor)
	{
	MyTable.bgColor = BGColor;
	MyTable.style.cursor = "hand";
	}

function DoMenu(URL)
	{
	window.location=URL
	}
	
function WildM(M)
	{
	var W = 550;
	var H = 394;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildMediaPlayer = window.open("ViewVideo2.cfm?M="+M, "WildMediaPlayer", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildMediaPlayer.focus();
	}
	
function ShowPix1(P,T)
	{
	var W = 740;
	var H = 600;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildPicPlayer = window.open("ViewPix3.cfm?T="+T+"&P="+P, "SuperPix", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildPicPlayer.focus();	
	}
	
function ShowPix(P,T)
	{
	var W = 715;
	var H = 520;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildPicPlayer = window.open("mypic.cfm?T="+T+"&P="+P, "PartyPix", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildPicPlayer.focus();	
	}

function ShowPix2(P,T)
	{
	var W = 740;
	var H = 600;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildPicPlayer = window.open("ViewPix4.cfm?T="+T+"&P="+P, "WildPix", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildPicPlayer.focus();	
	}

function ShowGOMPix(GOMday,GOMmonth,GOMyear)
	{
	var W = 696;
	var H = 460;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var WildMediaPlayer = window.open("ViewPix3.cfm?D="+GOMday+"&M="+GOMmonth+"&Y="+GOMyear, "PartyPix", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	WildMediaPlayer.focus();	
	}

function ShowUserProfile(UserID)
	{
	var W = 600;
	var H = 400;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var UserProfile = window.open("UserProfile.cfm?UserID=" + UserID, "UserProfile", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	UserProfile.focus();	
}
function ShowUserMessages(WP,SendToUserID)
	{
	var W = 685;
	var H = 440;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var UserMessages = window.open("UserMessages.cfm?SendToUserID="+SendToUserID+"&WP="+WP, "UserMessages", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	UserMessages.focus();	
	}	

function ShowUserMessagesHelp()
	{
	var W = 400;
	var H = 440;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var UserMessagesHelp = window.open("UserMessagesHelp.cfm", "UserMessagesHelp", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	UserMessagesHelp.focus();	
	}	

function ShowUserCalendar()
	{
	var W = 600;
	var H = 400;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var UserCalendar = window.open("UserCalendar.cfm", "UserCalendar", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	UserCalendar.focus();	
	}	

function ShowInviteFriends(EventID,TheYear,TheMonth,TheDay)
	{
	var W = 600;
	var H = 400;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var InviteFriends = window.open("InviteFriends.cfm?EventID="+EventID+"&Year="+TheYear+"&Month="+TheMonth+"&Day="+TheDay, "InviteFriends", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	InviteFriends.focus();	
	}		
	
function ShowUserFind()
	{
	var W = 600;
	var H = 400;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var UserFind = window.open("UserFindmain.cfm", "UserFind", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	UserFind.focus();	
	}	
	
function ViewMap(URL)
	{
	var W = 600;
	var H = 558;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var ViewMap = window.open("ViewMap.cfm?LocationID=" + URL, "ViewMap", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	ViewMap.focus();
	}

function SwitchToMap(URL)
	{	
	window.location='ViewMap.cfm?LocationID=' + URL;	
	}


function ViewDirections(URL)
	{
	var W = 600;
	var H = 558;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var ViewDirections = window.open("ViewDirections.cfm?LocationID=" + URL, "ViewDirections", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	ViewDirections.focus();
	}
function SwitchToDirections(URL)
	{	
	window.location='ViewDirections.cfm?LocationID=' + URL;	
	}
	
function ChangeCell(MyTable,BGImage)
	{
	MyTable.background = BGImage;
	MyTable.style.cursor = "hand";  
	}	
	
function ViewPromoterImage(PI,ImageWidth,ImageHeight)
	{
	var W = ImageWidth;
	var H = ImageHeight;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var PromoterImage = window.open("ViewPromoterImage.cfm?PI="+PI, "PromoterImage", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,top="+windowY+",left="+windowX+","+s, true);
	PromoterImage.focus();
	}

function ViewUserImage(UserID,ImageWidth,ImageHeight)
	{
	var W = ImageWidth;
	var H = ImageHeight;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var UserImage = window.open("UserImage.cfm?UserID="+UserID, "UserImage", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,top="+windowY+",left="+windowX+","+s, true);
	UserImage.focus();
	}	

function ViewArticleImage(ImageFile,ImageWidth,ImageHeight)
	{
	var W = ImageWidth;
	var H = ImageHeight;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var ArticleImage = window.open("ArticleImage.cfm?P="+ImageFile, "ArticleImage", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	ArticleImage.focus();
	}
	
function Signup()
	{
	var W = 610;
	var H = 630;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var Signup = window.open("Signup.cfm", "Signup", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	Signup.focus();
	}

function ModelVote(ModelID)
	{
	var W = 550;
	var H = 415;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var Signup = window.open("ModelVote.cfm?ModelID="+ModelID, "ModelVote", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	ModelVote.focus();
	}
	
function ForgotPassword()
	{
	var W = 550;
	var H = 415;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var ForgotPassword = window.open("ForgotPassword.cfm", "ForgotPassword", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	ForgotPassword.focus();
	}

function MiniCalendar()
	{
	var W = 400;
	var H = 300;
	var windowX = Math.ceil( (window.screen.width / 2) - (W / 2));
	var windowY = Math.ceil( (window.screen.height / 2) - (H / 2));
	s = ",width="+W+",height="+H;
	var MiniCalendar = window.open("MiniCalendar.cfm", "MiniCalendar", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top="+windowY+",left="+windowX+","+s, true);
	MiniCalendar.focus();
	}
	
function ForumIcons(Icon)
	{
	document.ForumPost.ForumMessage.value = document.ForumPost.ForumMessage.value + Icon;
	document.ForumPost.ForumMessage.focus();
	}

// open emoticon list in a popup window
function emoticons() {
	var top = 150; var left = 500;
	var width = 180; var height = 250;
	var param = "toolbar=no,scrollbars=yes,resizable=no,top=" + top + ",left=" + left + ",width=" + width + ",height=" + height;
	window.open("emoticons.cfm","emoticons",param);
}

// open color picker
function colorpicker(formname, fieldname) {
	var top = 150; var left = 500;
	var width = 340; var height = 260;
	var param = "toolbar=no,scrollbars=no,resizable=no,top=" + top + ",left=" + left + ",width=" + width + ",height=" + height;
	var url = "colorpicker.cfm?formname=" + formname + "&fieldname=" + fieldname;
	window.open(url,"colorpicker",param);
}