	

		var DTM_currentTabs = new Array();
	        function typoSetup() {
					/* this.passwordDummy = "********";*/
					this.decimalSign = ".";
				}
		var TS = new typoSetup();
	        var evalFunc = new evalFunc();

            function feedit_tx_had_structure_formSet(theField, evallist, is_in, checkbox, checkboxValue,checkbox_off){
/*alert("SET:" + theField+": "+document.tx_had_structure_form[theField].value);*/
	      var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue);
              var feValField = theField+"_feVal";

if(!(document.tx_had_structure_form && document.tx_had_structure_form[theField] && document.tx_had_structure_form[feValField])) return;

      theValue = document.tx_had_structure_form[theField].value;
/*              valField = theField.substring(0,theField.length-1)+"_hrv]";
	      document.tx_had_structure_form[theField].value = theValue;
alert(theValue); */
      document.tx_had_structure_form[feValField].value = evalFunc.outputObjValue(theFObj, theValue);

/*alert(theField+": "+document.tx_had_structure_form[theField].value);
alert(feValField+": "+document.tx_had_structure_form[feValField].value);*/
	    }

	    function feedit_tx_had_structure_formGet(theField, evallist, is_in, checkbox, checkboxValue,checkbox_off){
/*alert("GET: " + theField);*/
	      var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue);
      if (checkbox_off){
		document.tx_had_structure_form[theField].value=checkboxValue;
	      }else{
		document.tx_had_structure_form[theField].value = evalFunc.evalObjValue(theFObj, document.tx_had_structure_form[theField+"_feVal"].value);
                  /*if(document.tx_had_structure_form[theField].value.length==0)
                  for(idx=1; eval = feedit_split(evallist,",",idx);idx++);
                     if(eval == "required") {
                       alert("Feltet skal udfyldes");
                }*/
	      }
	     feedit_tx_had_structure_formSet(theField, evallist, is_in, checkbox, checkboxValue,checkbox_off);
	    }


            function feedit_tx_metafeedit_comments_formSet(theField, evallist, is_in, checkbox, checkboxValue,checkbox_off){
/*alert("SET:" + theField+": "+document.tx_metafeedit_comments_form[theField].value);*/
	      var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue);
              var feValField = theField+"_feVal";

if(!(document.tx_metafeedit_comments_form && document.tx_metafeedit_comments_form[theField] && document.tx_metafeedit_comments_form[feValField])) return;

      theValue = document.tx_metafeedit_comments_form[theField].value;
/*              valField = theField.substring(0,theField.length-1)+"_hrv]";
	      document.tx_metafeedit_comments_form[theField].value = theValue;
alert(theValue); */
      document.tx_metafeedit_comments_form[feValField].value = evalFunc.outputObjValue(theFObj, theValue);

/*alert(theField+": "+document.tx_metafeedit_comments_form[theField].value);
alert(feValField+": "+document.tx_metafeedit_comments_form[feValField].value);*/
	    }

	    function feedit_tx_metafeedit_comments_formGet(theField, evallist, is_in, checkbox, checkboxValue,checkbox_off){
/*alert("GET: " + theField);*/
	      var theFObj = new evalFunc_dummy (evallist,is_in, checkbox, checkboxValue);
      if (checkbox_off){
		document.tx_metafeedit_comments_form[theField].value=checkboxValue;
	      }else{
		document.tx_metafeedit_comments_form[theField].value = evalFunc.evalObjValue(theFObj, document.tx_metafeedit_comments_form[theField+"_feVal"].value);
                  /*if(document.tx_metafeedit_comments_form[theField].value.length==0)
                  for(idx=1; eval = feedit_split(evallist,",",idx);idx++);
                     if(eval == "required") {
                       alert("Feltet skal udfyldes");
                }*/
	      }
	     feedit_tx_metafeedit_comments_formSet(theField, evallist, is_in, checkbox, checkboxValue,checkbox_off);
	    }

	/**
	 * [Describe function...]
	 *
	 * @param	[type]		$theField: ...
	 * @return	[type]		...
	 */
            function feedit_manipulateMultipleSelect(theField) {
               selObj = document.tx_had_structure_form[theField+"_select"];
               val = selObj.value;
               list = document.tx_had_structure_form[theField].value;
               newList = "";
               for(i=0;i<selObj.length;i++) {
                  if(selObj.options[i].selected == true) {
                     newList += selObj.options[i].value+",";
                  }
               }
               if(newList.length!=0)
                 newList = newList.substring(0,newList.length-1);
               document.tx_had_structure_form[theField].value = newList;

            }

	/**
	 * [Describe function...]
	 *
	 * @param	[type]		$theField: ...
	 * @return	[type]		...
	 */
            function feedit_manipulateGroup(theField) {
               selObj = document.tx_had_structure_form[theField+"_select"];
               val = selObj.value;
               list = document.tx_had_structure_form[theField].value;
               newList = "";
               for(i=0;i<selObj.length;i++) {
                  if(selObj.options[i].selected == false) {
                     newList += selObj.options[i].value+",";
                  } else {
                     rem_i = i;
                  }
               }
               if(newList.length!=0)
                 newList = newList.substring(0,newList.length-1);
		/*alert(newList);*/
               document.tx_had_structure_form[theField].value = newList;
               selObj.options[rem_i] = null;

            }

	/**
	 * [Describe function...]
	 *
	 * @param	[type]		$theStr1, delim, index: ...
	 * @return	[type]		...
	 */
            function feedit_split(theStr1, delim, index) {
               var theStr = ""+theStr1;
               var lengthOfDelim = delim.length;
               sPos = -lengthOfDelim;
               if (index<1) {index=1;}
               for (var a=1; a < index; a++){
                   sPos = theStr.indexOf(delim, sPos+lengthOfDelim);
                   if (sPos==-1){return null;}
               }
               ePos = theStr.indexOf(delim, sPos+lengthOfDelim);
               if(ePos == -1) {ePos = theStr.length;}
               return (theStr.substring(sPos+lengthOfDelim,ePos));
            }
     