function editProfile(){showMainPanel("profile");var C=function(D){if(D.status!=200){alert("Sorry, this function is currently unavailable!");showMainPanel("map");return }wo.getEl("profileeditor").innerHTML=D.responseText;hideProfilePassword()};var A={success:C,failure:C};var B=YAHOO.util.Connect.asyncRequest("GET","editProfile.jsp",A)}function hideProfilePassword(){changeInputType(wo.getEl("profile_password"),"password");showElmnt("profile_password2_container","visible");showElmnt("profile_hidepwd","hidden")}function showProfilePassword(){changeInputType(wo.getEl("profile_password"),"text");showElmnt("profile_password2_container","hidden");showElmnt("profile_hidepwd","visible")}function saveProfile(A){if(A){if(wo.getEl("profile_password").type=="password"&&wo.getEl("profile_password").value!=document.getElementById("profile_password2").value){alert("Please enter the password twice, unchanged! (Or show the password by clicking the 'show typing' link if no one else sees your display)");return false}if(wo.getEl("profile_password").value!=""){saveProperty("password",document.getElementById("profile_password").value)}saveProperty("mail",wo.getEl("profile_mail").value);saveProperty("defaultpublictracks",wo.getEl("profile_defaultpublic").checked);saveProperty("statustext",wo.getEl("profile_statustext").value);saveProperty("app6symbolid",wo.getEl("profile_app6symbolid").value);wo.addNotification("Your profile is saved")}else{wo.addNotification("Canceling...")}showMainPanel("map");return false};