function leaveSite(langIncluded,site,referer)
{
	return reDirectPage(langIncluded,'UCPREF','UCP',site,referer,null);
}

function reDirectPage(langIncluded,siteName,windowName,URL,referer,otherOptions) 
{
	var sStatementDefault = "No message to be displayed";
	var sStatement1 = "You are leaving the www.ucp.org site and entering www.ucpresearch.org, an external link of our related entity, United Cerebral Palsy Research and Educational Foundation. This link provides additional information that may be useful or interesting. However, United Cerebral Palsy cannot attest to the accuracy of information provided by this link, or any other linked site.  Please be aware that the privacy protection provided on the www.ucp.org domain (see Privacy Policy) may not be available at this external link.\n\n Click OK to continue or Cancel to return.";
	var sStatement2 = "You are leaving the www.ucp.org site and entering www.ucpresearch.org, an external link of our related entity, United Cerebral Palsy Research and Educational Foundation. This link provides additional information that may be useful or interesting. However, United Cerebral Palsy cannot attest to the accuracy of information provided by this link, or any other linked site.  Please be aware that the privacy protection provided on the www.ucp.org domain (see Privacy Policy) may not be available at this external link.\n\n Click OK to continue or Cancel to return.";
	var sStatement3 = "This link will take you to a site maintained by a third party who is solely responsible for its content.  United Cerebral Palsy provides this link as a service to Web site visitors.  United Cerebral Palsy is not responsible for either the content or the privacy policy of any third party Web sites.\n\n Click OK to continue or Cancel to return.";

	if (windowName == null) windowName = '';

	if (otherOptions == null) otherOptions = '';
	
	switch (langIncluded)
	{
		case 1:
			sPrompt = sStatement1;
			break;
		case 2:
			sPrompt = sStatement2;
			break;
		case 3:
			sPrompt = sStatement3;
			break;			
		default:
			sPrompt = sStatement1Default;
	}

	if (confirm(sPrompt))
	{
		if (URL == null)
			return true;
		else
		{
			// Add here code for opennig a popup for the Research site and referring parent window to the UCP main site
			if(langIncluded == 1)
				window.location.href = URL;
			else
				window.open(URL,windowName,otherOptions);
			return true;
		}
	}
	else	
		window.location.href = referer;
} // Enf of function reDirectPage