function autofitIframe(id)
{
	if (window.parent != null)
	{
		if (!window.opera && !document.mimeType && document.all && document.getElementById)
		{
			var i;
			
			if (document.body)
			{
				i = (document.body.offsetHeight)? document.body.offsetHeight : 0;
			}
			
			if (parent.document.getElementById(id))
			{
				parent.document.getElementById(id).style.height=((i > 400) ? i : 400) +"px";
			}
			else
			{
				return false;
			}
		}
		else
		{ 
			if(document.getElementById) 
			{
				var i;
				
				if (document.body)
				{
					i = (document.body.offsetHeight)? document.body.offsetHeight : 0;
				}
				
				if (parent.document.getElementById(id))
				{
					parent.document.getElementById(id).style.height=((i > 400) ? i : 400) +"px";
				}
				else
				{
					return false;
				}
			}
		}
	}
}

function goTo(str, refreshTitle)
{
	if (parent.openUrl != null) {
		parent.openUrl(str, refreshTitle);
		//var s = str.split("/");
		//alert(s[0]);
		//alert(s[1]);
		parent.window.scrollTo(0,0);
	}
}

function openWindow(url) {
	window.open(url, "");
}

function doMouseOver(obj) {
	obj.style.backgroundColor = "#CCCCCC";
}

function doMouseOut(obj) {
	obj.style.backgroundColor = "";
}