function ComingSoon()
{
	alert( '\nComing Soon...\n' );
}

function PopUp( sUrl, sWindow, bScrollbars, bResizable, iWidth, iHeight )
{
	var	oWindow	= window.open( sUrl, sWindow, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=' + ( bScrollbars ? 'yes' : 'no' ) + ',resizable=' + ( bResizable ? 'yes' : 'no' ) + ',width=' + iWidth + ',height=' + iHeight );

	oWindow.focus();
}

function Play( sTitle, sFileName, sColor, sWindow, iWidth, iHeight )
{
	var	sUrl	= 'game.asp?title=' + escape( sTitle ) + '&file=' + sFileName + '&color=' + sColor + '&width=' + iWidth + '&height=' + iHeight;


	PopUp( sUrl, sWindow, 0, 0, ( iWidth + 20 ), ( iHeight + 20 ) );
}

function Download( sFile )
{
	if ( !confirm( '\nBy clicking the \'OK\' button, purchasing, downloading, or using this product or software, you are consenting to be bound by the license agreement.\n\nIf you do not agree to all of the terms of the license agreement, click the \'CANCEL\' button and the download process will not continue.\n' ) )
	{
		return;
	}

	if ( sFile == '' )
	{
		document.Form.submit();

		return;
	}

	top.location.href	= 'downloads/' + sFile;
}

function ContactSubmit()
{
	var	f		= document.Form;
	var	sMessage	= f.CONTACT_MESSAGE.value;

	if ( sMessage == '' )
	{
		alert( '\nPlease enter a message before submitting.\n' );

		return;
	}

	f.submit();
}

function ContactAlert( iAlert )
{
	if ( !iAlert )
	{
		return;
	}

	var	sMessage	= ( iAlert == 1 ) ? '\nYour message was sent successfully.\n\nThank you.\n' : '\nYour message could not be sent due to a server error.\n\nPlease try another means of contact.\n';

	alert( sMessage );

	if ( iAlert > 0 )
	{
		top.close();
	}
}