function getXMLHTTP(){var A=false;try{A=new XMLHttpRequest()}catch(B){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){try{req=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){A=false}}}return A}function showEditStatusMsg(D){if(D=="show"){document.getElementById("mypageDiv").className="showWrap";document.getElementById("mypageDiv").title="Click To Edit"}if(D=="hide"){document.getElementById("mypageDiv").style.backgroundColor="";document.getElementById("mypageDiv").className="";document.getElementById("mypageDiv").title="Click To Edit"}if(D=="edit"){document.getElementById("mypageDiv").style.border="";document.getElementById("mypageDivEdit").style.display="";document.getElementById("mypageDiv").style.display="none";document.getElementById("status_msg").value=document.getElementById("status_msg_hidden").value}if(D=="cancel"){document.getElementById("mypageDivEdit").style.display="none";document.getElementById("mypageDiv").style.display="";document.getElementById("mypageDiv").style.border="";document.getElementById("mypageDiv").className=""}if(D=="save"){var B=document.getElementById("status_msg").value;var E=document.getElementById("cttUserId").value;target_id="";var I="mypageDiv";var C="status_msg="+B;var G=window.location.href;var H=G.split(":");if(H[0]=="http"){var A=HOST_ROOT_PATH_VAR+"code/UserRegistration/ajaxStatusMessage.php?"+C}else{var A=HOST_ROOT_PATH_HTTPS_VAR+"code/UserRegistration/ajaxStatusMessage.php?"+C}var F=getXMLHTTP();if(F){F.onreadystatechange=function(){if(F.readyState==4){if(F.status==200){var J=F.responseText;document.getElementById("mypageDiv").className="";document.getElementById("mypageDivEdit").style.display="none";document.getElementById("mypageDiv").style.display="";if(trim(J)=="true"){document.getElementById("mypageDiv").innerHTML="[What are you thinking now?]";document.getElementById("status_msg_hidden").value="";}else{;document.getElementById("status_msg_hidden").value=trim(J);document.getElementById("mypageDiv").innerHTML=trim(J)}}else{alert("There was a problem while using XMLHTTP:\n"+F.statusText)}}};F.open("GET",A,true);F.send(null)}}}function html_entity_decode(B){var A=document.createElement("textarea");A.innerHTML=B.replace(/</g,"&lt;").replace(/>/g,"&gt;");return A.value}function showStatusMessageText(B,A){document.getElementById("statusMessageTd").innerHTML=B["ans"];document.getElementById("statusMessage").value=html_entity_decode(B["ans"]);document.getElementById("statusTd").style.display="block";document.getElementById("mypageDivEdit").style.display="none";document.getElementById("mypageDiv").style.display=""}function html_entity_decode(B){var A=document.createElement("textarea");A.innerHTML=B.replace(/</g,"&lt;").replace(/>/g,"&gt;");return A.value}function moveToPapTop(){document.getElementById("globalForm").papHiddenText.value="redirectToPap";document.getElementById("globalForm").action=HOST_ROOT_PATH_VAR;document.getElementById("globalForm").submit()}
