
//function getElementsByClassName(strClass, strTag, objContElm) {
//	strTag = strTag || "*";
//	objContElm = objContElm || document;
//	var objColl = objContElm.getElementsByTagName(strTag);
//	if (!objColl.length &amp;&amp;  strTag == "*" &amp;&amp;  objContElm.all) objColl = objContElm.all;
//	var arr = new Array();
//	var delim = strClass.indexOf('|') != -1  ? '|' : ' ';
//	var arrClass = strClass.split(delim);
//	for (var i = 0, j = objColl.length; i &lt; j; i++) {
//		var arrObjClass = objColl[i].className.split(' ');
//		if (delim == ' ' &amp;&amp; arrClass.length &gt; arrObjClass.length) continue;
//		var c = 0;
//		comparisonLoop:
//		for (var k = 0, l = arrObjClass.length; k &lt; l; k++) {
//			for (var m = 0, n = arrClass.length; m &lt; n; m++) {
//				if (arrClass[m] == arrObjClass[k]) c++;
//				if (( delim == '|' &amp;&amp; c == 1) || (delim == ' ' &amp;&amp; c == arrClass.length)) {
//					arr.push(objColl[i]);
//					break comparisonLoop;
//				}
//			}
//		}
//	}
//	return arr;
//}
 
function style_displaybox() {
 
	var box = document.getElementsByTagName('fieldset');//getElementsByClassName('displaybox','div');
 
	for (var i = 0, j = box.length; i < j; i++) {
 
//		var innerDiv = "";
//		var divTop = "";
//		var divBottom = "";
// 
//		//Insert Inner Div
        var id = box[i].id
		box[i].outerHTML = '<div class="displaybox" id="'+id+'"><div id="displaybox_top"><img src="/images/layout/top-left.gif" width="13" height="13" align="left" /><img src="/images/layout/top-right.gif" width="13" height="13" align="right" /></div><div id="displaybox_inner">'
		    +box[i].innerHTML+
		    '</div><div id="displaybox_bottom"><img src="/images/layout/bottom-left.gif" width="13" height="13" align="left"  /><img src="/images/layout/bottom-right.gif" width="13" height="13" align="right" /></div></div>';

//		innerDiv = box[i].firstChild;
// 
//		//Add top div
//		divTop = document.createElement('div');
//		divTop.setAttribute('id','displaybox_top');
//		box[i].insertBefore(divTop,innerDiv);
// 
//		img1 = document.createElement('img');
//		img1.setAttribute('src','/images/layout/top-left.gif');
//		img1.setAttribute('align','left');
//		divTop.appendChild(img1);
// 
//		img2 = document.createElement('img');
//		img2.setAttribute('src','/images/layout/top-right.gif');
//		img2.setAttribute('align','right');
//		divTop.appendChild(img2);
// 
//		//Add bottom div
//		divBottom = document.createElement('div');
//		divBottom.setAttribute('id','displaybox_bottom');
//		box[i].appendChild(divBottom);
// 
//		img3 = document.createElement('img');
//		img3.setAttribute('src','/images/layout/bottom-left.gif');
//		img3.setAttribute('align','left');
//		divBottom.appendChild(img3);
// 
//		img4 = document.createElement('img');
//		img4.setAttribute('src','/images/layout/bottom-right.gif');
//		img4.setAttribute('align','right');
//		divBottom.appendChild(img4);
 
	}
 
}
