function markUpdated(A){document.getElementById(A).name=A;document.getElementById(A).style.backgroundColor="#FFFF80"}function checkLength(A,C,D){if(strlen(A.value)>C){A.value=A.value.substr(0,C);if(strlen(A.value)>C){A.value=A.value.substr(0,C-(strlen(A.value)-C));var B=1;while(strlen(A.value)>C){A.value=A.value.substr(0,strlen(A.value)-B);B++}}document.getElementById("popupCharacterLimitMessageSymbols").innerHTML=C;document.getElementById("popupCharacterLimitMessageTextType").innerHTML=D;showCharacterLimitMessagePopup()}}function showCharacterLimitMessagePopup(){this.popupCharacterLimit=new ___Popup("popupCharacterLimitMessage",400,300);this.popupCharacterLimit.setTopPos(250+popupCharacterLimit_getScrollTop());this.popupCharacterLimit.show()}function hideCharacterLimitMessagePopup(){this.popupCharacterLimit.hide()}function popupCharacterLimit_getScrollTop(){var A=0;if(typeof (window.pageYOffset)=="number"){A=window.pageYOffset}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){A=document.body.scrollTop}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){A=document.documentElement.scrollTop}}}return A}function strlen(A){return addRN(addslashes((""+utf8encode(A)))).length}function addslashes(A){return A.split("\\").join("\\\\").split('"').join('\\"').split("'").join("\\'")}function addRN(A){return(""+A).split("\n").join("\n\n")}function utf8encode(B){B=B.replace(/\r\n/g,"\n");var A="";for(var D=0;D<B.length;D++){var C=B.charCodeAt(D);if(C<128){A+=String.fromCharCode(C)}else{if((C>127)&&(C<2048)){A+=String.fromCharCode((C>>6)|192);A+=String.fromCharCode((C&63)|128)}else{A+=String.fromCharCode((C>>12)|224);A+=String.fromCharCode(((C>>6)&63)|128);A+=String.fromCharCode((C&63)|128)}}}return A};function splitLongWords(text, wordlen)
{
    var words = new Array();
    var newWords = new Array();
    words = text.split(" ");
    for (var i=0;i<words.length;++i)
    {
      if (words[i].length > wordlen)
      {
        newWords[i] = words[i].substr(0, wordlen) + " " + words[i].substr(wordlen);
        newWords[i] = text_perfom(newWords[i], wordlen);
      } else {
        newWords[i] = words[i];
      }
    }
  return newWords.join(" ");
}
function text_perfom(text, wordlen)
{
    var words = new Array();
    var newWords = new Array();
    words = text.split(" ");
    for (var i=0;i<words.length;++i)
    {
      if (words[i].length > wordlen)
      {
        newWords[i] = words[i].substr(0, wordlen) + " " + words[i].substr(wordlen);
        newWords[i] = text_perfom(newWords[i], wordlen);
      } else {
        newWords[i] = words[i];
      }
    }
  return newWords.join(" ");
}
