// JavaScript Document
function calendar(object,form_field,set_focus)
{
	document.getElementById(object).style.display = (document.getElementById(object).style.display == 'block') ? 'none' : 'block';
	cvalue = (document.getElementById(object).style.display == 'block') ? 1 : 2;
	
	if(document.getElementById(object).style.display == 'block')
	{
		window.open('calendar/calendar.asp?form_field='+form_field+'&form_focus='+set_focus+'&cal_frame='+object,object)
	}
}

function passText(str,form_field,set_focus,calendar) 
{
	document.getElementById(form_field).value = str;
	document.getElementById(calendar).style.display = 'none';
	document.getElementById(set_focus).focus();
}