var num=0;
function addAtt(){
	var d = document.getElementById('att');
	d.appendChild(logasm.cr('div',{},new Array(logasm.cr('label',{},'Row'),logasm.cr('input',{type:'text',name:'att'+num}))));
	//new Array(,logasm.cr('input',{type:'text',value:'txt'+(num)}));
	num++;
}

function addLog(){
	var p = new Object();
	p._time=logasm.time();
	p.line='-';
	p.func='button';
	
	var d = document.getElementById('att');
	for(var i=0;i<d.childNodes.length;i++){
		var c = d.childNodes[i];
		var pn = c.childNodes[1].name;
		var pv = c.childNodes[1].value;
		eval("p."+pn+"='"+pv+"'");
	}
	
	logasm.write(document.test.title.value,document.test.text.value,p);
}

function initLogasmMore(){
	var ref=document.getElementById('ref');
	attachEventCB(ref,'mousemove',logasm.resizeDrag);
}