/*******************************************************************************
 jsDomH_0_0.js by prog@hrubec.com 2008/07/19; HTTP://www.hrubec.com
 Copyright: (c) 2008 Hrubec Pavel. All Rights Reserved.
 Purport: javaScript DOM creations.
*******************************************************************************/

window.createInput=
function
 (
  label
	,initValue
 ,onChangeFunction 
	)
 {
 var f=document.createElement("span");
 f.className="field";
 currentParent.appendChild(f);
 var l=document.createElement("span");
 f.appendChild(l);
 l.innerHTML=label+': ';
 var i=document.createElement("input");
 f.appendChild(i);
 i.value=initValue;
 i.onchange=onChangeFunction;
 return i;
 };

window.createSpace=
function
 (
	)
 {
 var f=document.createElement("span");
 f.className="space";
 currentParent.appendChild(f);
 f.innerHTML=' ';
 };

window.createButton=
function
 (
  label
 ,onClickFunction 
	)
 {
 var o=document.createElement("button");
 currentParent.appendChild(o);
 o.innerHTML=label;
 o.onclick=onClickFunction;
 return o;
 };