startHighlight= function()
{
	if (document.all && document.getElementById)
	{  
		navRoot = document.getElementById("dgListView");
		tbody = navRoot.childNodes[0];
		iLength=tbody.childNodes.length
		for (i = 1; i <iLength ; i++)
		{
			node = tbody.childNodes[i];
       		if (node.nodeName == "TR")
			{
				node.onmouseover=function()
				{							
					this.className += " TDOver"; 
					
				}
				
				node.onmouseout=function()
				{
					this.className = this.className.replace(" TDOver", "");
				}				
			}
		}
		
	}
}
		
				  
function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function') 
	{
		window.onload = func;
		//alert("A");
	}
	else
	{
		window.onload = function()
		{
			oldonload();
			func();
			//alert("B");
		}
	}
}

function openWin(id)
{
	sUrl="Appointment.aspx?ID="+id;
	//alert(sUrl);
	newWin=window.open(sUrl,'Appointment','status=yes,menubar=no,address=no,scrollbars=no,resizable=yes,top=100,left=100,width=660,height=418');////
	newWin.focus();
}

function openMonthView(cdate)
{
	sUrl="DispatchView.aspx?view=month"+"&CurrentDate="+cdate;
	window.location.replace(sUrl);
}

