// ZNIPPets.com, "Zcreate.js", by DocOzone... 
// DHTML div creation code code

function createZobject(id,wrapper,top,left,height,width,zindex) { 

if (Zflag.IE)
	{
	document.body.insertAdjacentHTML('BeforeEnd','<div id="' + id + '" class="borderBox"></div>');
	}

else if (Zflag.gecko)
	{
	div = createDiv(id,'borderBox');
	height=height-2; width=width-2;
	}	
	
Zobject[Zobject.length] = new makeZobject(id,wrapper,top,left,height,width,zindex);
	
	}
	



function createDiv(divId,classId)
{
	styleText = "position:absolute;left:0px;top:0px;";
	elem = document.createElement("DIV");
	elem.setAttribute("style",styleText);
	elem.setAttribute("class",classId);
	elem.setAttribute("id", divId);
	document.body.appendChild(elem);
	return elem;
}
