
function cal_clickDate(oDate, oTitle_1, oTitle_2, oTitle_3, oContent_1, oContent_2, oContent_3)
{
	obj_calendar_home_Table_1 = page_findObj("calendar_home_Table_1")
	obj_calendar_home_Header_1 = page_findObj("calendar_home_Header_1")
	obj_calendar_home_Content_1 = page_findObj("calendar_home_Content_1")
	obj_calendar_home_Table_2 = page_findObj("calendar_home_Table_2")
	obj_calendar_home_Header_2 = page_findObj("calendar_home_Header_2")
	obj_calendar_home_Content_2 = page_findObj("calendar_home_Content_2")
	obj_calendar_home_Table_3 = page_findObj("calendar_home_Table_3")
	obj_calendar_home_Header_3 = page_findObj("calendar_home_Header_3")
	obj_calendar_home_Content_3 = page_findObj("calendar_home_Content_3")



	obj_Content_1 = page_findObj(oContent_1)
	obj_Title_1 = page_findObj(oTitle_1)
	obj_Content_2 = page_findObj(oContent_2)
	obj_Title_2 = page_findObj(oTitle_2)
	obj_Content_3 = page_findObj(oContent_3)
	obj_Title_3 = page_findObj(oTitle_3)


	strText_1 = jtrim(obj_Content_1.innerHTML)
	strTitle_1 = jtrim(obj_Title_1.innerHTML)
	strText_2 = jtrim(obj_Content_2.innerHTML)
	strTitle_2 = jtrim(obj_Title_2.innerHTML)
	strText_3 = jtrim(obj_Content_3.innerHTML)
	strTitle_3 = jtrim(obj_Title_3.innerHTML)


		obj_calendar_home_Table_1.style.display  = "block";
		obj_calendar_home_Header_1.innerHTML = strTitle_1;
		obj_calendar_home_Content_1.innerHTML = strText_1;


	if (strTitle_2 == "")
	{
		obj_calendar_home_Table_2.style.display  = "none";
	}
	else
	{
		obj_calendar_home_Table_2.style.display  = "block";
		obj_calendar_home_Header_2.innerHTML = strTitle_2;
		obj_calendar_home_Content_2.innerHTML = strText_2;
	}
	if (strTitle_3 == "")
	{
		obj_calendar_home_Table_3.style.display  = "none";
	
	}
	else
	{
		obj_calendar_home_Table_3.style.display  = "block";
		obj_calendar_home_Header_3.innerHTML = strTitle_3;
		obj_calendar_home_Content_3.innerHTML = strText_3;
		
	}
	
}

function cal_doRemoveShow()
{
	obj1 = page_findObj("divShowContent")
	obj2 = page_findObj("divShowContentPlaceHolder")
	obj1.style.display = "none";
	obj2.style.display = "";
}
function bgws_Popup(l, tar)
{
	if (l == "t") 
	{
		objPopUp = page_findObj("calendarPopUp")
		objPopUpSource = page_findObj(tar)
		var content="<TABLE WIDTH=150 BORDER=1 BORDERCOLOR=black CELLPADDING=4 CELLSPACING=0 BGCOLOR='#ffcde3'><TD ALIGN=left><FONT COLOR=black SIZE=2>"+objPopUpSource.innerHTML+"</FONT></TD></TABLE>";
		objPopUp.innerHTML=content;
		objPopUp.style.display=""
		objPopUp.style.top  = tempY + 20;
		objPopUp.style.left = tempX;
	}
	else
	{
		objPopUp = page_findObj("calendarPopUpLeft")
		objPopUpSource = page_findObj(tar)
		var content="<table cellpadding=2 cellspacing=0><tr><td align=right><font color=white size=2>"+objPopUpSource.innerHTML+"</font></td></tr></table>";
		objPopUp.innerHTML=content;
	}
}

function bgws_CalClickKill()
{
		oT = page_findObj("objCalClickTarget")
		oT.style.display = "none";
}


function bgws_CalClick(v, bg)
{
		oTHidden = page_findObj(v)
		
		oT = page_findObj("objCalClickTarget")
		oTC =  page_findObj("objCalClickTarget_Copy") 
		oT.style.backgroundImage = "url(/images/"+ bg + ")";
		oTC.innerHTML = oTHidden.innerHTML
		oT.style.display = "";
}

function bgws_Popkill(l)
{
	if (l == "t") 
	{
		objPopUp = page_findObj("calendarPopUp")
		objPopUp.style.display="none"
	}
	else
	{
		objPopUp = page_findObj("calendarPopUpLeft")
		objPopUp.innerHTML = ""		
	}
}

