
function SaveProperty(strMode,strPropRef,strHistoryReplace)
{
	//This will save the passed property reference to the property cart page in the propertycart iframe
	propertycart.location.href = 'propertycart.asp?mode=' + strMode+ '&id=' + strPropRef + '';
	
	if (strHistoryReplace == '1')
	{
		ReplaceTheHistory = setTimeout('replacehistory()',1400);
	}
	
	
}

function ShowMessage()
{
	
	document.getElementById("PropertyCartMessage").style.visibility = 'visible';
	document.getElementById("PropertyCartBK").style.visibility = 'visible';
	ShowtheMessage = setTimeout('HideMessage()',1500)
}

function HideMessage()
{	
	document.getElementById("PropertyCartMessage").style.visibility = 'hidden';
	document.getElementById("PropertyCartBK").style.visibility = 'hidden';
	clearTimeout(ShowtheMessage);
}

function ShowMessageDuplicate()
{
	
	document.getElementById("PropertyCartMessageDuplicate").style.visibility = 'visible';
	document.getElementById("PropertyCartBK").style.visibility = 'visible';
	ShowtheMessageDuplicate = setTimeout('HideMessageDuplicate()',1500)
}

function HideMessageDuplicate()
{	
	document.getElementById("PropertyCartMessageDuplicate").style.visibility = 'hidden';
	document.getElementById("PropertyCartBK").style.visibility = 'hidden';
	clearTimeout(ShowtheMessageDuplicate);
}

function ShowMessageQuota()
{
	
	document.getElementById("PropertyCartMessageQuota").style.visibility = 'visible';
	document.getElementById("PropertyCartBK").style.visibility = 'visible';
	ShowtheMessageQuota = setTimeout('HideMessageQuota()',1500)
}

function HideMessageQuota()
{	
	document.getElementById("PropertyCartMessageQuota").style.visibility = 'hidden';
	document.getElementById("PropertyCartBK").style.visibility = 'hidden';
	clearTimeout(ShowtheMessageQuota);
}

function reloadpropertycart()
{
	propertycart.location.href = "propertycart.asp?d=1";
}

function replacehistory()
{
	window.location.replace(window.location.href);
}

function ShowHelper()
{
	document.getElementById('Helper').style.display = 'block';
	//setTimeout("document.getElementById('Helper').style.filter=alpha(opacity=20)",2000);
	//setTimeout("document.getElementById('Helper').style.filter=alpha(opacity=40)",2000);
	//setTimeout("document.getElementById('Helper').style.filter=alpha(opacity=60)",2000);
	//setTimeout("document.getElementById('Helper').style.filter=alpha(opacity=80)",2000);
	//setTimeout("document.getElementById('Helper').style.filter=alpha(opacity=100)",2000);
}
	
