function ShowEvent()

{

// function is called from Donate.ascx

if(document.forms[0].elements['chbxEvent'].checked)

{


document.forms[0].elements['Template__ctl2_txtEventName'].style.visibility='visible'

}

else

{

document.forms[0].elements['Template__ctl2_txtEventName'].style.visibility='hidden'

}

}

function HideEventOnLoad()

{

document.forms[0].elements['Template__ctl2_txtEventName'].style.visibility='hidden';

}


function formKeyDown(obj, btn)
{
	if (document.all)
	{
		if (event.keyCode == 13)
		{
			event.returnValue = false;
			event.cancel = true;
			btn.click();
		}
	}
}

function clearme(element)
{
	element.value = ''; 
}

function leapto(form)
{
	var myindex=form.navmenu.selectedIndex;
	form.navmenu.selectedIndex = 0;
	location.href=(form.navmenu.options[myindex].value);
}




function OpenWindow(pageName, pageAttributes)
{
	window.open(pageName, 'popUp',pageAttributes);
}

var popUp; 

function OpenCalendar(idname, postBack)
{
	popUp = window.open('../Calendar.aspx?formname=' + document.forms[0].name + 
		'&id=' + idname + '&selected=' + document.forms[0].elements[idname].value + '&postBack=' + postBack, 
		'popupcal', 
		'width=250,height=290,left=200,top=250');
}

function SetDate(formName, id, newDate, postBack)
{
	eval('var theform = document.' + formName + ';');
	popUp.close();
	theform.elements[id].value = newDate;
	if (postBack)
		__doPostBack(id,'');
}

		
function createTarget(t, page, width, height){
	//alert(page);
	window.open(page, t, 'directories=no,height=' + height + ',location=no,menubar=no,resizable=yes,scrollbars=yes, status=no,toolbar=no,width='+ width);
	//return true;
}

		


