function getObject(objectId) {
	if(document.getElementById && document.getElementById(objectId)) 
	{
		return document.getElementById(objectId);
	} 
	else if (document.all && document.all(objectId)) 
	{
		return document.all(objectId);
	} 
	else if (document.layers && document.layers[objectId]) 
	{	
		return document.layers[objectId];
	} 
	else 
	{
		return null;
	}
}

function show(obj)
{
 	if(typeof(obj) == "undefined")
		return;
 	obj.style.visibility = 'visible';
}

function hide(obj)
{
	if(typeof(obj) == "undefined")
		return;
	obj.style.visibility = 'hidden';
}

function TrackPopUp(objID,Show,height)
{
	var obj;
	obj = getObject(objID);
	if(typeof(obj) == "undefined" || obj == null)
		return;
	if(Show)
	{
		obj.style.left = obj.parentElement.offsetWidth + 3;
		obj.style.top = height;
		show(obj);
	}
	else
	{
		hide(obj);
	}
	return false;
}

function TrackPopUp1(objID,Show,height,width)
{
	var obj;
	obj = getObject(objID);
	if(typeof(obj) == "undefined" || obj == null)
		return;
	if(Show)
	{
		obj.style.left = width;
		obj.style.top = height;
		show(obj);
	}
	else
	{
		hide(obj);
	}
	return false;
}

function Goto(URL)
{
	getObject("katastimata").src= URL;
	
}


function resizeIframe() {
	try {
		if (!window.opera && !document.mimeType && document.all && document.getElementById) {
			parent.getObject("katastimata").style.height = this.document.body.offsetHeight+"px";
		} else if(document.getElementById) {
			parent.getObject("katastimata").style.height = this.document.body.scrollHeight+"px";
		}
	} catch(error) {}
} 
