function validateAmount(amount)
	{
		if(amount.value.match( /^[0-9]+(\.([0-9]+))?$/))
		{
			return true;
		}
		else
		{
			alert('You must enter a valid donation.');
			amount.focus();
			return false;
		}
	}
function opengallery(url)
{
		NewGalleryWindow=window.open(url,'newgalWin','width=1024,height=700,toolbar=No,location=No,scrollbars=no,status=No,resizable=no,fullscreen=No');  
		NewGalleryWindow.focus(); 
		void(0);  
}
function openvideo(url)
{
		NewVideoWindow=window.open(url,'newvidWin','width=850, height=505, toolbar=No, location=No, scrollbars=no, status=No, resizable=no, fullscreen=No');  
		NewVideoWindow.focus(); 
		void(0);  
}
var currentContent = null;

function togglePannelAnimatedStatus(content, interval, step)
{
    // wait for another animated expand/collapse action to end
    if (currentContent==null)
    {
        currentContent = content;
        var expand = (content.style.display=="none");
        if (expand)
            content.style.display = "block";
        var max_height = content.offsetHeight;

        var step_height = step + (expand ? 0 : -max_height);
                
        // schedule first animated collapse/expand event
        content.style.height = Math.abs(step_height) + "px";
        setTimeout("togglePannelAnimatingStatus(" + interval + "," + step
            + "," + max_height + "," + step_height + ")", interval);
    }
}

function togglePannelAnimatingStatus(interval, step, max_height, step_height)
{
    var step_height_abs = Math.abs(step_height);

    // schedule next animated collapse/expand event
    if (step_height_abs>=step && step_height_abs<=(max_height-step))
    {
        step_height += step;
        currentContent.style.height = Math.abs(step_height) + "px";
        setTimeout("togglePannelAnimatingStatus(" + interval + "," + step
            + "," + max_height + "," + step_height + ")", interval);
    }
    // animated expand/collapse done
    else
    {
        if (step_height_abs<step)
            currentContent.style.display = "none";
        currentContent.style.height = "";
        currentContent = null;
    }
}//From XtractPro


