window.name = 'Controller';
var browserName = navigator.appName;
var sURL = unescape(window.location.pathname);
function refresh()
{
	window.location.href=sURL;
}

function openSatWin(theURL,winName,features)
{
	var satWin = window.open(theURL,winName,features);
	satWin.focus();
}

function openSatWinWithConf(theURL,winName,features,confirmMsg)
{
	//var doDelete = return confirm(confirmMsg);
	if(confirm(confirmMsg))
	{
		var satWin = window.open(theURL,winName,features);
		satWin.focus();
	}
}

function switchMenu(obj)
{
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' )
	{
		el.style.display = 'none';
	} else
	{
		el.style.display = '';
	}
}

function lookforvars(first, second)
{
	if(first == '1')
	{
		alert('Working 1...');
	}
	if(second == '1')
	{
		alert('Working 2...');
	}
}