function P2View(intRef,intType) {
	window.open("property_details.aspx?PROPERTY_REF=" + intRef + "&TYPE=" + intType + "&E=F","_blank","top=0,left=0,height=480,width=690,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function OpenPhoto(strFileName)
{
	window.open("property_photo_view.aspx?FileName=" + strFileName,"_blank","height=415,width=540,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
	return false;
}
function VT(ref)
{
	window.open("http://www.myproperty.co.za/myproperty_webcontrols/property/global/virtualtour.aspx?property_ref=" + ref,"_blank","height=350,width=390,scrollbars=no,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}

function Login(ref) 
{
		window.open("http://oms.entegral.net/default.aspx?ref=" + ref,"_blank","height=500,width=500,scrollbars=yes,menubar=no,statusbar=yes,toolbar=no,resizable=yes",false);	
}
function EmailA(ref1,ref2)
{
	window.open("email.aspx?person_ref=" + ref1 + "&property_ref=" + ref2,"_blank","height=390,width=490,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function BC()
{
	window.open("bond_calculator.aspx","_blank","height=380,width=390,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function CC(from,to,amount) {
		window.open('http://www.hifx.co.uk/agent/myproperty/converter.asp?from=' + from + '&to=' + to + '&amount=' + amount,'Converter', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=515,height=120');
}
function EP(folder,property_ref)
{
	window.open("/myproperty_webcontrols/property/" + folder + "/email_property.aspx?property_ref=" + property_ref,"_blank","height=380,width=390,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function OpenP(ref)
{
	window.open("person_details.aspx?person_ref=" + ref,"_blank","height=400,width=570,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function OpenO(ref)
{
	window.open("office_details.aspx?office_ref=" + ref,"_blank","height=480,width=570,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function OpenWindow(ref,width,height)
{
	window.open(ref,"_blank","height=" + height + ",width=" + width + ",scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
var message="Copyright Protected";
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
