function showHelpDialog(){
	$('#helpDialog').dialog(
							{width: 460,
							 modal: true});
}

function showLadiesHelpDialog(){
	$('#ladiesHelpDialog').dialog(
							{width: 460,
							 modal: true});
}

function showTournamentHelp(){
	$('#tournamentsHelpDialog').dialog(
							{width: 640,
							 modal: true});
}

function DisplayImage(picURL,picWidth,picHeight){
	newWindow=window.open(picURL,'newWin','toolbar=no,width='+picWidth+',height='+picHeight)
	newWindow.document.write('<html><head><\/head><body background="'+picURL+'"><\/body><\/html>')
	newWindow.resizeBy(picWidth-newWindow.document.body.clientWidth,picHeight-newWindow.document.body.clientHeight)
	newWindow.focus()
}

function showSignupForm(){
	submitted=false;
	$('#signupForm').dialog(
							{width: 427,
							 height: 460,
							 modal: true});
}

function cancelFredLeagueDialog(){
	$('#signupForm').dialog( "close" );
	$('#entry_0').val("").removeClass( "ui-state-error" );
	$('#entry_1').val("").removeClass( "ui-state-error" );
	$('#entry_2').val("").removeClass( "ui-state-error" );
}

function signupSuccessful(){
	$('#signupForm').dialog( "close" );
	$('#signupSuccess').dialog(
							{width: 380,
							 height: 240,
							 modal: true});
}

function closeSignupSuccessDialog() {
	$('#signupSuccess').dialog( "close" );
}

function LoadGoogleFeedsAPI() {
	// Load the feeds API and set the onload callback.
   	google.load('feeds', '1');
   	google.setOnLoadCallback(LoadDynamicFeedControl);
}
