var LeaveAccess;
var desktop;

function startLeaveAccess(desktopURL)
{
agent = navigator.userAgent;
if (agent.toUpperCase().indexOf("MSIE 3") > -1)
{
	desktop = window.open("leave_access.html");
	rates=desktopURL
	t=settimeout('go()',3000)
}
	else
	desktop = window.open(desktopURL, "new", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width=400,height=200,resizable=yes");
}
function go()
{
	desktop.window.go(leaveaccess)
}


var LeaveAccessNa;
var desktop;

function startLeaveAccess(desktopURL)
{
agent = navigator.userAgent;
if (agent.toUpperCase().indexOf("MSIE 3") > -1)
{
	desktop = window.open("leave_access2.html");
	rates=desktopURL
	t=settimeout('go()',3000)
}
	else
	desktop = window.open(desktopURL, "new", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width=400,height=200,resizable=yes");
}
function go()
{
	desktop.window.go(leaveaccessna)
}

var LeaveAccessSa;
var desktop;

function startLeaveAccess(desktopURL)
{
	agent = navigator.userAgent;
	if (agent.toUpperCase().indexOf("MSIE 3") > -1)
	{
		desktop = window.open("leave_access3.html");
		rates=desktopURL
		t=settimeout('go()',3000)
	}
	else
	{
		desktop = window.open(desktopURL, "new", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width=400,height=200,resizable=yes");
	}
}
function go()
{
	desktop.window.go(leaveaccesssa)
}


var LeaveAccessTa;
var desktop;

function startLeaveAccess(desktopURL)
{
agent = navigator.userAgent;
if (agent.toUpperCase().indexOf("MSIE 3") > -1)
{
	desktop = window.open("leave_access4.html");
	rates=desktopURL
	t=settimeout('go()',3000)
}
	else
	desktop = window.open(desktopURL, "new", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width=400,height=200,resizable=yes");
}
function go()
{
	desktop.window.go(leaveaccessta)
}

function startLeaveAccess(lcURL){
	if(lcURL!="") {
		var r=confirm('You are about to access a site created, operated and maintained by a company other than Morgan Stanley Smith Barney. Please click OK to continue to this site.');
		if(r===true) { 
			if(lcURL.indexOf("thirdparty.html")!= -1) { var splitURL=lcURL.substring(lcURL.indexOf('?')+1,lcURL.length); }
			else { splitURL = lcURL; }
			desktop = window.open(splitURL, "new", "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width=600,height=400,resizable=yes");
		}
		else { return; }
	}
	else { return; }

}
