/* 
 * Name: 			evt_val.js
 *
 * Description:  	Scripts to validate and format data entered 
 *
 * Author:  		Julie Zimmerman
 *
 * Date: 			1/10/2008
 *
 * Notes:
 *
 * Copyright (C) 2008 by Solutions Through Software, Inc. The material 
 * contained herein is the proprietary property of Soloutions Through Software.
 * Disclosure of this material is strictly prohibited except where 
 * permission is granted in writing. 
 *
 * $Id: evt_val.js,v 1.3 2011/07/19 23:28:28 geoswap Exp $
 */

gRsvpEventId = 0;

function evtRsvpResetId()
{
	gRsvpEventId = 0;
}

function evtRsvpInput(eid, signedIn, returnUrl)
{

	var winNm = "Event Rsvp";
	var url = "";
	var winContent = "";

	if (!signedIn)
	{
		alert("To RSVP to an event, you must be signed into this web site.");
	}
	else if (gRsvpEventId == 0)
	{
		if (eid > 0)
		{
			gRsvpEventId = eid;
			setTimeout('evtRsvpResetId()', 500);

			url = "/evt/rsvp.php?eid=" + eid;

			if (returnUrl != "")
				url += "&url=" + returnUrl;
		}

		if (url != "")
		{
			window.location = url;
		}
	}
}

