function OpenPhoto(strFileName)
{
	window.open("photo.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() 
{
		window.open("http://oms.entegral.net/default.aspx?ref=104","_blank","height=500,width=500,scrollbars=yes,menubar=no,statusbar=yes,toolbar=no,resizable=yes",false);	
}
function EmailA(ref1,ref2)
{
	window.open("helpusell/contact/contact_agent.aspx?person_ref=" + ref1 + "&property_ref=" + ref2,"_blank","height=430,width=520,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function EP(folder,property_ref)
{
	window.open("std/property/email_property.aspx?property_ref=" + property_ref,"_blank","height=460,width=520,scrollbars=yes,menubar=no,statusbar=no,toolbar=no,resizable=yes",false);
}
function BC()
{
	window.open("bond_calculator.aspx","_blank","height=410,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 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 openVideo(arg) {
	window.open(arg,"","height=240,width=320,menubar=0,location=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=20,top=20" );
}
var message="Copyright Help-U-Sell";

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")
