var imgClub = new Image(16,15);
var imgSpade = new Image(16,15);
var imgHeart = new Image(16,15);
var imgDiamond = new Image(16,15);

imgClub.src = "images/blackclub.gif";
imgSpade.src = "images/blackspade.gif";
imgHeart.src = "images/redheart.gif";
imgDiamond.src = "images/reddiamond.gif";

function showImage(imgname)
{
    document.getElementById(imgname).style.visibility = "visible";
}

function hideObject(imgname)
{
    document.getElementById(imgname).style.visibility = "hidden";
}

function openGenericWindow(url, w, h, winName, showMenus, showStatusBar ) 
{
	if (navigator.appName.substring(0, 5) == 'WebTV') return true;
	//Determine the left and top position of the window
	var l = (screen.width - w) / 2;
	var t = (screen.height - h) / 2;
	//Build the parameter list of features to be displayed on the new window
	var params = "toolbar=no,location=no,directories=no,status=" + showStatusBar + ",menubar=" + showMenus + ",scrollbars=yes,resizable=yes,copyhistory=no,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l + ",screenX=" + l + ",screenY=" + t + "";
     
	//Open a new window and set focus to it
	genericWindow = window.open(url, winName, params);
	genericWindow.focus();
	return false;
}

