dojo.dom.insertAtPosition = function(/* Node */node, /* Node */ref, /* string */position){   if((!node)||(!ref)||(!position)){ return false; } switch(position.toLowerCase()){ case "before": return dojo.dom.insertBefore(node, ref); case "after": return dojo.dom.insertAfter(node, ref); case "first": if(ref.firstChild){ return dojo.dom.insertBefore(node, ref.firstChild); }else{ ref.appendChild(node); return true; } break; default: ref.appendChild(node); return true; } 
dojo.dom.insertAtPosition=function(node,ref,_154){ if((!node)||(!ref)||(!_154)){ return false; 
dojo.dom.insertAtPosition = function(/* Node */node, /* Node */ref, /* string */position){  //  summary  //  attempt to insert node in relation to ref based on position  if((!node)||(!ref)||(!position)){     return false; //  boolean   }  switch(position.toLowerCase()){    case "before":      return dojo.dom.insertBefore(node, ref);  //  boolean    case "after":      return dojo.dom.insertAfter(node, ref);   //  boolean    case "first":      if(ref.firstChild){        return dojo.dom.insertBefore(node, ref.firstChild); //  boolean      }else{        ref.appendChild(node);        return true;  //  boolean      }      break;    default: // aka: last      ref.appendChild(node);      return true;  //  boolean  }}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/90939f35f46f873d9b1f5c5f818ecf012711dc71/dojo.js/buggy/src/main/resources/org/apache/struts2/static/dojo/dojo.js