function launchBrowser(link, windowName, browserProps)
{
	var linkHref;
	var newBrowser;

	if (typeof(link) == "object")
	{
		linkHref = link.href;
	}
	else
	{
		linkHref = link;
	}

	// If you pass an empty browser properties string in IE, 
	// then IE has reasonable defaults in terms of what it will show
	// (eg. toolbar, menubar, etc. will show by default). If you
	// pass an empty string in Netscape, it will default to 
	// showing nothing (no toolbar, no status bar, etc.). 
	// To get around this, in Netscape, if you don't pass anything in the
	// window.open call then it will open with the toolbar, menubar,
	// etc.
	
	if (typeof(windowName) == "undefined")
	{
		windowName = "";
	}
	
	if (typeof(browserProps) == "undefined")
	{
		browserProps = "";
	}
	
	if ((windowName == "") && (browserProps == ""))
	{
		newBrowser = window.open(linkHref);
	}
	else if ((windowName != "") && (browserProps == ""))
	{
		newBrowser = window.open(linkHref, windowName);
	}
	else if ((windowName == "") && (browserProps != ""))
	{
		newBrowser = window.open(linkHref, "", browserProps);
	}
	else
	{
		// All parameters supplied.
		newBrowser = window.open(linkHref, windowName,  browserProps);
	}

	return newBrowser;
}

function  switchlogin(panel){
	var link1 = document.getElementById('link1');
	var link2 = document.getElementById('link2');
	var panel1 = document.getElementById('panel1');
	var panel2 = document.getElementById('panel2');
		if(panel == 'panel1')
		{
			panel1.style.display = 'block';
			link1.className = 'lactive';
			panel2.style.display = 'none';
			link2.className = 'lpassive';
		}else{
			panel1.style.display = 'none';
			link1.className = 'lpassive';
			panel2.style.display = 'block';
			link2.className = 'lactive';
		}
	}
	
function getPanel(area,page){
	ajax = new sack(page);
	ajax.method = "get";
	ajax.element = area;
	//ajax.onLoading = function(){
	//document.getElementById(area).innerHTML = '<div class="loader">&nbsp;</div>';
	//};
	ajax.runAJAX();
	document.getElementById(area).style.display = '';
}


function loadarea(area,page){
	var outerH = document.getElementById('xdetail');
	var innerH = document.getElementById('xdetailarea');
	//alert(area);
	getPanel('xdetailarea',page);
	outerH.style.display='';
}

function hidediv(area){
	var outerH = document.getElementById('xdetail');
	var innerH = document.getElementById('xdetailarea');
	outerH.style.display='none';
	innerH.innerHTML = '';
	
	}