function enlargePhoto(ref)
{	
	window.open("/webpages/search/propPhotoL.asp?id="+ref,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=320,height=223");
}
function videoClips(ref)
{
	window.open("/webpages/search/propVideo.asp?id="+ref,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=345,height=263");
}
function morePhotos(ref,pid,mtype,folder)
{
	window.open("/webpages/search/propPhotos.asp?id="+ref+"&pid="+pid+"&mtype="+mtype+"&folder="+folder,"_blank","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=263");
}
function showProfile(ref)
{
	window.open("/webpages/search/propProfile.asp?id="+ref,"body");
}

function AddProperty(pid) {
	//alert(ref);
	var mF=document.myForm;
	//var PT=mF.PT.value;
	//if (PT=="R") {
	var mF=document.MenuForm;
	var isNat=mF.isNat.value;
	var ccode = mF.ccode.value;
	var RegionSub=mF.RegionSub.value;
		window.navigate("member_port_agent_list_edit_add.asp?isNat="+isNat+"&RegionSub="+RegionSub+"&ccode="+ccode+"&pid="+pid);
	//} else {
	//	window.navigate("member_port_agent_list_comm_add.asp?pid="+pid);
		
	//}
	
}

function SetPropType(aVal) {
	//alert(aVal);
	if ((aVal=="Residential houses") || (aVal=="Townhouses") || (aVal=="Apartments") || (aVal=="Luxury Properties"))  {
		ResProp.style.display='';
		CommProp.style.display='none';
	} else {
		ResProp.style.display='none';
		CommProp.style.display='';

	}
}

function ShowPropType() {
	var PT=document.frmContactInfo.types.value;
	if ((PT=="Residential houses") || (PT=="Townhouses") || (PT=="Apartments") || (PT=="Luxury Properties"))  {
		ResProp.style.display='';
		CommProp.style.display='none';
	} else {
		ResProp.style.display='none';
		CommProp.style.display='';

	}
}


