/*

  require func.js

*/


createDiv = {
 wdisc : Array(),
add : function (name,comment){
  this.wdisc[name]=comment;
},
complete : true,
  // CREATE LINKS DIV
crtDiv : function (pEl,grp){
  createDiv.complete = false;

  wd=this.wdisc[grp];
  d=crtNode('div');
  com = crtTxtNode(wd);
  d.appendChild(com);
//  d=this.setStyle(d);
  pEl.appendChild(d);

  return pEl.lastChild;

  this.complete = true;
},
// CREATE POINT OF LINKS
crtIMG : function (){
  pointNode = document.createElement('img');
  pointNode.src = point.src;

  if(point.hspace != null)
    pointNode.hspace = point.hspace;
  if(point.vspace != null)
    pointNode.vspace = point.vspace;
  if(point.width != null)
    pointNode.width = point.width;
  if(point.height != null)
    pointNode.height = point.height;

  return pointNode;
},
setStyle : function (el){
  el.style.border="solid 1px #f46200";
  el.style.position="absolute";
  el.style.top=0;
  el.style.left=0;
  el.style.backgroundColor="#ffffff";
  el.style.visibility="hidden";
  el.style.padding="10px";
  return el;
},

// REMOVE LINKS
removeDiv : function (pEl){

  removeChildNodes(pEl);

}

  
};
