
function getQueryString() {
	var url = document.URL;
	var idx = url.indexOf("?");
	if (idx != -1) {
		var querystring = url.substring(idx + 1);
		return querystring;
	}
	return null;
}

function getDocumentPath()
{
    var url = document.URL;
    var idx = url.lastIndexOf("\\");
    if (idx != -1) {
        url = url.substring(0, idx);
        url = url.replace(/%20/g, " ");
    }
    else {
        idx = url.lastIndexOf("/");
        if (idx != -1) {
            url = url.substring(0, idx);
        }
    }
    return url;
}

var ContactUsWnd;
function contactUs()
{
	if (ContactUsWnd && !ContactUsWnd.closed) {
		ContactUsWnd.focus();
	}
	else {
		var url = 'http://www.csfb.com/locus/next/contact_us.html';
		ContactUsWnd = window.open(url, 'ContactUs', 'width=680, height=580, dependent=1, directories=0, hotkeys=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, titlebar=0, toolbar=0')
	}
}

var SlideshowWnd;
function openSlideshow()
{
	if (SlideshowWnd && !SlideshowWnd.closed) {
		SlideshowWnd.focus();
	}
	else {
		var url = 'http://www.csfb.com/locus/next/flash_intro/index.html';
		SlideshowWnd = window.open(url, 'intro', 'width=950, height=622, dependent=1, directories=0, hotkeys=0, location=0, menubar=0, resizable=1, scrollbars=0, status=0, titlebar=0, toolbar=0')
	}
}

var RegisterWnd;
function openRegister()
{
	if (RegisterWnd && !RegisterWnd.closed) {
		RegisterWnd.focus();
	}
	else {
		var url = 'https://registration.csfb.com/register.html?application=LOCuS';
		RegisterWnd = window.open(url, 'RegisterForLOCuS', 'dependent=1, directories=0, height=740, hotkeys=0, location=0, menubar=0, resizable=1, scrollbars=1, status=1, titlebar=0, toolbar=0, width=810')
	}
}

var AwardsWnd;
function openAward()
{
	if (AwardsWnd && !AwardsWnd.closed) {
		AwardsWnd.focus();
	}
	else {
		var url = "http://www.csfb.com/investment_banking/tom/2003/2003_euromoney_locus.html";
		AwardsWnd = window.open(url, 'Award', 'width=660, height=650, dependent=1, directories=0, hotkeys=0, location=0, menubar=0, resizable=1, scrollbars=1, status=0, titlebar=0, toolbar=0')
	}
}

function loaded() {
	if (top.location != location) {
		top.location.href = document.location.href ;
	}
}
