            function E(id) {
                var resE = document.getElementById(id);
                if (resE == null) resE = document.all["id"];
                return (resE);
            }



function add_pic(obj,nformat)
{   
	var parent=obj.parentNode;
	var newNode=obj.cloneNode(true);
	
	newNode.id="p"+(parent.children.length+1);
	newNode.children[0].name=nformat+(parent.children.length+1);

	parent.insertBefore(newNode,obj);
	
}

