function ShowInfo(infoid)
	{
		var info = document.getElementById(infoid);
		var lastinfoId = document.getElementById("hidLastInfoId");
		if (lastinfoId.value == infoid)					//same info
			{
				if (info.style.display == 'none')		//Already hidden
					{			
						info.style.display = 'inline';
					}
				else			
					{			
						info.style.display = 'none';
					}
			}
		else if (lastinfoId.value != "")
			{
				var lastinfo = document.getElementById(lastinfoId.value);
				lastinfo.style.display = 'none';		//hide the last info
				lastinfoId.value = infoid;
				info.style.display = 'inline';			//show this info
			}
		else
			{
				info.style.display = 'inline';			//show this info
				lastinfoId.value = infoid;
			}
	}

function addToFavorites() 
	{ 
		if (window.external) 
			{
				var welcome =  document.getElementById("tdWelcome");
				var url = window.location;
				window.external.AddFavorite(url,welcome.innerHTML);
			} 
		else 
			{ 
				alert("Sorry! Your browser doesn't support this function."); 
			} 
	} 

function DisableAvailability(rblID, imgID, lblRequestID, txtRequestID)
    {
        rbl=document.getElementById(rblID);
        rbl.style.display = 'none';
        lbl=document.getElementById(lblRequestID);
        lbl.style.display = 'none';
        txt=document.getElementById(txtRequestID);
        txt.style.display = 'none';
        img=document.getElementById(imgID);
        img.style.display = 'inline';
    }
    
function DisableSubmitButton(btnID)
    {
        if (typeof(Page_ClientValidate) == 'function') 
            { 
                btn=document.getElementById(btnID);
                //btn.value = 'Please wait...';
				btn.style.display = 'none';		//hide the button
                //btn.disabled = true;
                //ClientScript.GetPostBackEventReference(Me, "");
                //return false;
            }
    }

