function externalMail(MAIL)
{
var i = Math.round(100*Math.random());	
var oWin = window.open(MAIL,"newWin_"+i);//,"width=100,height=50,top=5000,left=5000");
	//if (oWin==null || typeof(oWin)=="undefined")
	//{
	//	doPassVar("_root.Portal._puBlocker", 1);
	//}
	//else
	//{
	//	//oWin.close();
	//	doPassVar("_root.Portal._puBlocker", 0);
	//}
}



function IsPopupBlocker(url) 
{
	var i = Math.round(100*Math.random());

	var oWin = window.open(url,"newWin_"+i);//,"width=100,height=50,top=5000,left=5000");
	if (oWin==null || typeof(oWin)=="undefined")
	{
		doPassVar("_root.Portal._puBlocker", 1);
	}
	else
	{
		//oWin.close();
		doPassVar("_root.Portal._puBlocker", 0);
	}
}

var flashHeight = 0;
function setHeight(h)
{
	flashHeight = h;
	window.scroll(0,0);
	setHtmlVars();
}

//function setHeight(h)
//{
//	document.getElementById("siteholder").style.height = h+"px";
//	window.scroll(0,0); 
//	setHtmlVars();
//}


function setHtmlVars()
{
	var ScrollTop = document.body.scrollTop;
	if (ScrollTop == 0)			
	{
		if (window.pageYOffset)
	
			ScrollTop = window.pageYOffset;
		else
			ScrollTop = (document.body.parentElement) ? document.body.parentElement.scrollTop : 0;
	}
		
	doPassVar("_root.htmlScrollPos", ScrollTop);
	//doPassVar('_root.Portal._center', 'true');

	var Browser = (navigator.appName.substring(0,9)== "Microsoft")? Browser = 'MSIE':navigator.appName;
	
	var availWidth;
	if (Browser != 'MSIE')
	{
		availWidth = Number(innerWidth);
		availHeight = Number(innerHeight);
	}
	else
	{
		availWidth = Number(document.body.clientWidth);
		availHeight = Number(document.body.clientHeight-1);		
	}
	doPassVar("_root.htmlInnerHeight", availHeight);
	

	var h = (flashHeight<availHeight)?availHeight:flashHeight;
	document.getElementById("siteholder").style.height = (h)+"px";
	
	
	
	if(availWidth < 880)
	{
		document.getElementById("siteholder").style.width ="880px";
	}
	else
	{
		document.getElementById("siteholder").style.width = "100%";//(availWidth)+"px";
	}
}

function doPassVar(name, args)
{		
	window.document.website.SetVariable(name, args);
}

function refresh()
{
		window.location = window.location;
		
		return null;
}

function refocus()
{
	window.focus();
	//return null;		
}
