function getmytop(wname)
	{
	if(name==wname) return window;
	if(parent.name==wname) return parent;
	if(parent.parent.name==wname) return parent.parent;
	if(parent.parent.parent.name==wname) return parent.parent.parent;
	if(parent.parent.parent.parent.name==wname) return parent.parent.parent.parent;
	return null;
	}

function openInnerUrl(id,bpopup,url)
	{
	if(bpopup==2)
		{
		window.open(url,"", "width=470,height=457,resizable=1,scrollbars=yes,toolbar=no,status=no,menubar=no");
		return false;
		}
	return true;
	}

function openExternalUrl(url,bpopup)
	{
	return true;
	}

function openDocument(docR_Id)
	{
	return true;
	}

function preview(id,lng)
	{
	window.open("/_backOffice/preview.php?id="+id+"&lng="+lng,"", "width=623,height=410,resizable=1,scrollbars=yes,toolbar=no,status=no,menubar=no");
	}

function getObj(strId)
	{
	var obj = new Object;

	if(document.all) obj = document.all(strId);
	else if(document.getElementById) obj = document.getElementById(strId);
	else if(document.layers) eval("obj = document." + strId);

	return obj;
	}

function funcShowObj(bshow)
	{
	var obj=null;
	var strid="idAXOBJ";

	if(document.all) obj = document.all(strid);
	else if(document.getElementsByName) obj = document.getElementsByName(strid);

	if(obj) 
		{		
		if(typeof(obj.length)!="undefined")
			for(var k=0; k<obj.length; k++)
				obj.item(k).style.visibility = (bshow ? "visible" : "hidden");
		else
			obj.style.visibility = (bshow ? "visible" : "hidden");
		}
	}
