
function setRoundArea(id, imgLT, imgRT, imgLB, imgRB, size, clr){
	var e = document.getElementById(id);
	var e_chd = e.cloneNode(true);
	
	/*
	var lt = document.createElement("div");
	var lm = document.createElement("div");
	var lr = document.createElement("div");
	*/
	
	
	var tbl = document.createElement("table");
	tbl.setAttribute("border", 0);
	tbl.setAttribute("cellpadding", 0);
	tbl.setAttribute("cellspacing", 0);
	var tr;
	var td;
	
	
	//////////////////////////////
	// 1
	tr = document.createElement("tr");
	
	td = document.createElement("td");
	td.setAttribute("style", "width:" + size + "px; height:" + size + "px; background:url(img/" + imgLT + ") no-repeat;");
	tr.appendChild(td);
	
	td = document.createElement("td");
	td.setAttribute("style", "height:" + size + "px; background-color:" + clr + ";");
	tr.appendChild(td);
	
	td = document.createElement("td");
	td.setAttribute("style", "width:" + size + "px; height:" + size + "px; background:url(img/" + imgRT + ") no-repeat;");
	tr.appendChild(td);
	
	tbl.appendChild(tr);
	
	
	//////////////////////////////
	// 2
	tr = document.createElement("tr");
	
	td = document.createElement("td");
	td.setAttribute("style", "width:" + size + "px; background-color:" + clr + ";");
	tr.appendChild(td);
	
	td = document.createElement("td");
	td.appendChild(e_chd);
	td.setAttribute("style", "background-color:" + clr + ";");
	tr.appendChild(td);
	
	td = document.createElement("td");
	td.setAttribute("style", "width:" + size + "px; background-color:" + clr + ";");
	tr.appendChild(td);
	
	tbl.appendChild(tr);
	
	
	//////////////////////////////
	// 3
	tr = document.createElement("tr");
	
	td = document.createElement("td");
	td.setAttribute("style", "width:" + size + "px; height:" + size + "px; background:url(img/" + imgLB + ") no-repeat;");
	tr.appendChild(td);
	
	td = document.createElement("td");
	td.setAttribute("style", "height:" + size + "px; background-color:" + clr + ";");
	tr.appendChild(td);
	
	td = document.createElement("td");
	td.setAttribute("style", "width:" + size + "px; height:" + size + "px; background:url(img/" + imgRB + ") no-repeat;");
	tr.appendChild(td);
	
	tbl.appendChild(tr);
		
		
	while(e.firstChild){
		e.removeChild(e.firstChild);
	}
	e.appendChild(tbl);
}


