
function jump(form) {
	var s = form.NavVal[form.NavVal.selectedIndex].value;
	this.location.href = s;
}

function OpenEdit(Property_Id) {
	var w = window.location='/Property/Edit.aspx?Property_Id=' + Property_Id;
	w.focus();
}
function OpenChecklist(Property_Id,address) {
	var w = window.location='/Property/Checklist.aspx?Property_Id=' + Property_Id + '&address=' + address;
	w.focus();
}
function OpenLetters(Property_Id) {
	var w = window.location='/Property/Letters.aspx?Property_Id=' + Property_Id;
	w.focus();
}
function OpenBidders(Property_Id) {
	var w = window.location='/UserManagement/Default.aspx?Property_Id=' + Property_Id;
	w.focus();
}
function OpenContractSent(Property_Id) {
	var w = window.location='/Property/ContractSent.aspx?Property_Id=' + Property_Id;
	w.focus();
}
function OpenStats(Property_Id,FromDate,ToDate) {
	var w = window.open ('/Property/PrintStat.aspx?Property_Id=' + Property_Id +'&f='+FromDate+'&t='+ToDate, "Property_Statistics", "width=600,height=700,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0");
	w.focus();
}


function OpenAbout(Id) {
	var w = window.open ('/About/'+Id+'.html', "about", "width=400,height=300,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0");
	w.focus();
}

function OpenExtranet() {
	var w = window.open ('http://extranet.realcorpsystems.com.au');
	w.focus();
}

function OpenCMS() {
	var w = window.open ('http://cms.iproperty.com.au');
	w.focus();
}

function OpenLoadDoSuburbs(Property_Id, PostCode) {
	window.location ='/Property/SelectSuburb.aspx?Property_Id=' + Property_Id + '&PostCode=' + PostCode;
	
}

function OpenPropertyReports(Property_Id) {
	var w = window.open ('/PropertyReports/?Property_Id=' + Property_Id,"property_reports","width=400,height=450,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0");
	w.focus();
}
function OpenBiddersRecord(Property_Id) {
	var w = window.open ('/Property/biddersrecord.aspx?Property_Id=' + Property_Id,"bidders record","width=400,height=450,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0");
	w.focus();
}
function OpenEditProperty_Status(Property_Id) {
	var w = window.location = '/Property/Mod_Property_Status.aspx?Property_Id=' + Property_Id;
	w.focus();
}

function RefreshPage_Global() {
	
	var ref = document.location.href;
	
	if(ref.indexOf("Management.aspx") > 0) {
		document.location.href = '/Portal.aspx';
	} else {
		document.location.reload();
	}
}

function RefreshPage_Global_Opener() {
	if(window.opener && !window.opener.closed) {
		window.opener.document.parentWindow.RefreshPage_Global();
	}
}


function OpenNewWindow(url) {
	var w = window.open(url, 'OpenBrochure', 'scrollbars=1,resizable=1,menubar=1');
	w.focus();
}

function OpenUploadLogo(agencyid) {
	var w = window.open('/AgencyManagement/UploadLogo.aspx?agency_id=' + agencyid,"agency_logo","width=600,height=150,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0");
	if (window.focus) {w.focus()}
}
function OpenUploadAgentLogo(id) {
	var w = window.open('/Property/UploadAgentLogo.aspx?property_id=' + id,"agent_logo","width=600,height=150,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0");
	if (window.focus) {w.focus()}
}