// JavaScript Document
var xmlHttp;

function show_hidden(id_name1,id_name2)
{
document.getElementById(id_name1).style.display = 'none';
document.getElementById(id_name2).style.display = 'block';
}
function calender(mon1,yr1)
{

xmlHttp=GetXmlHttpObject();
var mon,mon1,yr,yr1;
if(mon1==0 && yr1 ==0)
{
var mon=document.getElementById("mon").value;
var yr=document.getElementById("yr").value;
}
else
{
var mon=mon1;
var yr=yr1;		
}
var url=urlbase+"calendardatas/"+"index/"+yr+"/"+mon;
xmlHttp.onreadystatechange=statechange;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}
function statechange()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("calender").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject()
{
var xmlHttp=null;
try
{
// Firefox, Opera 8.0+, Safari
xmlHttp=new XMLHttpRequest();
}
catch (e)
{
// Internet Explorer
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
}
return xmlHttp;
}
		
var retun_flag=0;
function  mousemove(str,hidden_val) {
var str;
if(retun_flag==hidden_val)
{
a=document.getElementById("class"+str).style.border="2px solid #CBD6DC";
document.getElementById("test"+str).style.backgroundColor="#ffffff";
document.getElementById("test"+str).style.color="#000000";
return retun_flag=0;
}
else
{
a=document.getElementById("class"+str).style.border="2px solid #88B9CF";
document.getElementById("test"+str).style.backgroundColor="#FF0000";
document.getElementById("test"+str).style.color="#ffffff";	
return retun_flag=1;
}
}
function  mousemovedetails(str) {
var str;
document.getElementById("details"+str).style.display="block";
}	
function  mouseout(str) {
var str;
a=document.getElementById("class"+str).style.border="1px solid #ffffff";
document.getElementById("test"+str).style.backgroundColor="#ffffff";
document.getElementById("test"+str).style.color="#000000";	
}
function  mouseoutdetails(str) {
var str;
document.getElementById("details"+str).style.display="none";
}
