function calenderInit(home_calender)
{
	showPortletInit("calenderbox","carrow");
	getCalender('', '', home_calender);
}

//------------------------------------------------------------------------------

function getCalender(jmonth,jyear,home_calender)
{	
	getCalenderResponse(home_calender+"/getcalendar.php?year1="+jyear+"&month="+jmonth+"&test=flag");
}

//------------------------------------------------------------------------------

function showCalender()
{
	showPortlet("calenderbox","carrow");
}

//------------------------------------------------------------------------------


function getCalenderResponse(fromURL)
{	

	if (window.ActiveXObject) 
	{
		HttpGetResponseCalender = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else 
	{
        HttpGetResponseCalender = new XMLHttpRequest;
    }
    
	SendUrl = encodeURI(fromURL);
	SendUrl = noCache(SendUrl);
    HttpGetResponseCalender.open("GET", SendUrl, true);
    HttpGetResponseCalender.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
	HttpGetResponseCalender.onreadystatechange 	= HandleHttpGetResponseCalender;
	
    HttpGetResponseCalender.send(null);
}

//------------------------------------------------------------------------------

function HandleHttpGetResponseCalender() 
{
	
	if (HttpGetResponseCalender.readyState == 4) 
		document.getElementById("calendar1").innerHTML		=	HttpGetResponseCalender.responseText;
		
}   

//------------------------------------------------------------------------------
