Namespace.Register("WCL.Link"); WCL.Link.Fieldpaths = { FieldpathsClick : function() { WCL.AJAX.UpdateContentDiv(WCL.General.format("fieldpaths/pathtypes/{0}.html.php", "introduction"), true); WCL.General.SetTitle("Types Of Paths"); return false; }, PathTypesMenuClick : function(pathType) { WCL.AJAX.UpdateRightContentDiv(WCL.General.format("fieldpaths/pathtypes/{0}_menu.html.php", pathType), true); WCL.General.SetTitle("Types Of Paths"); return false; }, VoluntaryWorksClick : function() { WCL.AJAX.UpdateContentDiv("fieldpaths/voluntaryWorks.html.php", true); WCL.General.SetTitle("Voluntary Works"); return false; }, ReportProblemClick : function() { WCL.AJAX.UpdateContentDiv("fieldpaths/reportProblem.html.php", false); WCL.General.SetTitle("Report A Problem"); return false; }, SubmitProblemClick : function(frm) { frm.submit.disabled = true; frm.submit.value = "Processing..."; if(frm.image.value.length == 0) { var d = "fullname=" + encodeURIComponent(frm.fullname.value); d += "&address=" + encodeURIComponent(frm.address.value); d += "&email=" + encodeURIComponent(frm.email.value); d += "&phone=" + encodeURIComponent(frm.phone.value); d += "&district=" + encodeURIComponent(frm.district.value); d += "&pathType=" + encodeURIComponent(frm.pathType.value); d += "&parish=" + encodeURIComponent(frm.parish.value); d += "&pathName=" + encodeURIComponent(frm.pathName.value); d += "&descriptionFrom=" + encodeURIComponent(frm.descriptionFrom.value); d += "&descriptionTo=" + encodeURIComponent(frm.descriptionTo.value); d += "&mapType=" + encodeURIComponent(frm.mapType.value); d += "&mapNumber=" + encodeURIComponent(frm.mapNumber.value); d += "&date=" + encodeURIComponent(frm.date.value); d += "&gridRef=" + encodeURIComponent(frm.gridRef.value); d += "&town=" + encodeURIComponent(frm.town.value); d += "&description=" + encodeURIComponent(frm.description.value); WCL.AJAX.UpdateContentDiv("fieldpaths/reportProblem.html.php", true, d); return false; } return true; } }