function viewNotice(pnoticeId)
{
	if(document.searchForm.NI!=null) document.searchForm.NI.value = pnoticeId;
	document.searchForm.action="/property_details";
	document.searchForm.method.value="view";
	document.searchForm.submit();
}

function ReturnToList()
{
	//If the feedback form is showing then we need to hide it before we submit
	//because the notice reference is on that form
	if(feedbackHTML=="") ShowHideFeedback();
	if(emailafriendHTML=="") ShowHideEmailAFriend();

	document.searchForm.action="/property/residential_sales";
	document.searchForm.method.value="search";
	document.searchForm.NI.value="";
	document.searchForm.NR.value="";
	document.searchForm.submit();
}
