function checkingDates(arrDy,arrMn,depDy,depMn,dif,ctr)
{
	var difDy = depDy.value - arrDy.value;
	var difMn = depMn.selectedIndex - arrMn.selectedIndex;

	if(difMn < 0 && difDy > -1)
	{
		depMn.selectedIndex = arrMn.selectedIndex;
	}

	if (difDy < 1 && difMn == 0 && ctr == 0)
	{
		if(arrDy.selectedIndex < (30-dif))
		{
			depDy.selectedIndex = arrDy.selectedIndex + dif;
		}
		else
		{
			if (depMn.selectedIndex < (depMn.length - 1)) 
			{
				depDy.selectedIndex = arrDy.selectedIndex + dif - 30;
				depMn.selectedIndex += 1;
			}
		}
	}
	return false;
}

function show_hide(object){ 
    show = true; 
    obj1 = document.getElementById("master").getElementsByTagName("div"); 
    obj2 = document.getElementById(object); 
    if (obj2.style.display == '') 
        show = false; 
    for (i = 0; i < obj1.length; i++) { 
        obj1[i].style.display = 'none'; 
     } 
    if (show == true) 
        obj2.style.display = ''; 
}


function bookmarksite(title, url) {
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

function bookmarksite() {
if (document.all)
window.external.AddFavorite(location.href, document.title);
else if (window.sidebar)
window.sidebar.addPanel(document.title, location.href, "")
}
