﻿//Create Image
function htmlcontrol()
{
//Do Nothing
}

htmlcontrol.prototype.img=function(Path,Title,ID,Event,ALG,H,W,CSS)
{
  return '<img title="'+Title+'" src="'+ Path +'" id="'+ ID +'" '+ Event +' border="0" align="'+ ALG +'" height="'+ H +'" width="'+ W +'" class="'+ CSS +'">'
}

htmlcontrol.prototype.Links=function(Headline,URL,ID,Title,Target)
{
  return '<a title="'+ Title +'" href="'+ URL +'"  id="'+ ID +'" target="'+ Target +'">'+ Headline +'</a>'
}

htmlcontrol.prototype.createfiled=function(type,value,id,size)
{

  return '<input type="'+type+'" value="'+value+'" id="'+id+'" size="'+size+'">'

}



htmlcontrol.prototype.createfiledwithevent=function(type,value,id,size,events,css)
{

  return '<input type="'+type+'" value="'+value+'" id="'+id+'" size="'+size+'" class="'+css+'"  '+events+'>'

}




htmlcontrol.prototype.createcheckbox=function(title,id,name,value,checked,events)
{
  return '<input type="checkbox"  title="'+title+'" '+checked+' id="'+id+'"  name="'+name+'" value="'+value+'" '+events+'>';
}

htmlcontrol.prototype.createdropdownlist=function(id,css)
{

 return '<select class="'+css+'" id="'+id+'" ></select>'

}






htmlcontrol.prototype.addElement=function(parentID,chiledID,ELM)
{
  
  this.newel = document.createElement(ELM);
  this.newel.id=chiledID
  $(parentID).appendChild(this.newel);


}


htmlcontrol.prototype.removeElement=function(parentID,chiledID)
{
  $(parentID).removeChild($(chiledID));
}

