function find_obj(theObj, theDoc) {

	var p, i, foundObj;

	if (!theDoc) {

		theDoc = document;
	}

	if ((p = theObj.indexOf("?")) > 0 && parent.frames.length) {

		theDoc = parent.frames[theObj.substring(p + 1)].document;
		theObj = theObj.substring(0,p);
	}

	if (!(foundObj = theDoc[theObj]) && theDoc.all) {

		foundObj = theDoc.all[theObj];
	}

	for (i = 0; !foundObj && i < theDoc.forms.length; i++) {

		foundObj = theDoc.forms[i][theObj];
	}

	for (i = 0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) {

		foundObj = findObj(theObj,theDoc.layers[i].document);
	}

	if (!foundObj && document.getElementById) {

		foundObj = document.getElementById(theObj);
	}

	return foundObj;
}


function find_style(obj) {

	if (obj.style) {

		obj = obj.style;
	}

	return obj;
}
function show_layer(id, layers) {

	var obj, objStyle;

	for (var i = 0; i < layers.length; i++) {
		aRealNameObj = layers[i].split('_');
		if(aRealNameObj[3]){
			sRealNameObj = aRealNameObj[2];
		}else{
			sRealNameObj = layers[i];
		}
		obj      = find_obj(sRealNameObj);
		objStyle = find_style(obj);
		objStyle.display = 'none';
	}
	aRealNameObj = id.split('_');
	if(aRealNameObj[3]){
		sRealNameObj = aRealNameObj[2];
	}else{
		sRealNameObj = id;
	}
	obj      = find_obj(sRealNameObj);
	objStyle = find_style(obj);
	objStyle.display = 'block';

	return true;
}
