function toggleDivs()
{
	document.all[arguments[1]].style.display = "none";
	document.all[arguments[2]].style.display = "none";
	if(arguments[0] == 0)
	{
		document.all[arguments[1]].style.display = "none";
		document.all[arguments[2]].style.display = "none";
	}
	else
	{
		if(arguments[0] == 1)
		{
			document.all[arguments[1]].style.display = "inline";
		}
		else
		{
			document.all[arguments[2]].style.display = "inline";
		}
	}
}
function ShowMoreInfo()
{
	var mediaPath = document.all["mediaPathHidden"].value;
	var moreInfoDiv = document.all["moreInfoDiv"];
	if (document.images['toggleInfoButton'].id == 'toggleInfoButton')
	{
		document.images['toggleInfoButton'].src = mediaPath+'/images/site/buttons/minus_button.gif';
		document.images['toggleInfoButton'].id = 'togglePropertyInfoButton1';
		document.images['toggleInfoButton'].title = arguments[0];
		moreInfoDiv.style.display = "block";
	}
	else
	{
		document.images['toggleInfoButton'].src = mediaPath+'/images/site/buttons/plus_button.gif';
		document.images['toggleInfoButton'].id = 'toggleInfoButton';
		document.images['toggleInfoButton'].title = arguments[1];
		moreInfoDiv.style.display = "none";
	}
}
function ToggleSpan()
	{
	if(arguments[0] == 1)
	{
		document.all[arguments[1]].style.display = "inline";
	}
	else
	{
		document.all[arguments[1]].style.display = "none";
		if (document.all["workingWithAgent_AgentTextBox"] != null)
		{
			document.all["workingWithAgent_AgentTextBox"].value ="";
			document.all["workingWithAgent_BrokerTextBox"].value ="";
		}
	}
}
function AgentURL()
{
	var referrerURL = top.location.href;
	referrerURL = referrerURL.split("?");
	var i = referrerURL[0].lastIndexOf("/");
	document.all["agentURL"].value = referrerURL[0].substring(0,i+1)+'index.html';
}		
	