if(navigator.userAgent.indexOf("MSIE 5.") > -1) {
	document.write('<link rel="stylesheet" href="../../styles/cou_stylesheet_best.css" type="text/css">');
} else if(navigator.userAgent.indexOf("MSIE 6.") > -1) {
	document.write('<link rel="stylesheet" href="../../styles/cou_stylesheet_best.css" type="text/css">');
} else if(parseInt(navigator.appVersion) < 5.0) {
	if(navigator.platform.indexOf("Mac") > -1) {
		document.write('<link rel="stylesheet" href="../../styles/cou_stylesheet_mac.css" type="text/css">');
	} else {
		document.write('<link rel="stylesheet" href="../../styles/cou_stylesheet_win.css" type="text/css">');
	}
} else {
	document.write('<link rel="stylesheet" href="../../styles/cou_stylesheet_best.css" type="text/css">');
}
function setLoginFocus() {
    document.frmLogin.username.focus();
}

function setMailingFocus() {
    //document.frmMailList.email.focus();
}
            
function doKeyPress(oForm) {
    if (event.keyCode == 13) {
        doLogin(oForm);
    }            
}
            
function doQuickSearch(oForm) {
    oForm.n.value = oForm.c1.options[oForm.c1.selectedIndex].text;
    oForm.submit();
}

function doMailing(oForm) {
    if (isEmpty(oForm, 0, "E-mail Address", "") &&
        isEmail(oForm, 0, "E-mail Address")) {
   
        oForm.submit();
    }
    
    return void(0); 
}    
            
function doJumpTo(sToPage) {
    if (sToPage != "-")
        document.location.href = sToPage;
}            

function doLogout() {
    document.frmLogout.logouttopage.value = '';
    document.frmLogout.submit();
}	 

function doJumpOutTo(sToWhere) {
    if (confirm("This will end your current member session.\nDo you want to continue?")) {
        document.frmLogout.logouttopage.value = sToWhere;
        document.frmLogout.submit();
    } else {
        return void(0);
    }    
}

function openPrintWindow(url, width, height)
{
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',top=' + ((screen.height - height) / 2) + ', left=' + ((screen.width - width) / 2) + ', resizable=1,scrollbars=yes,menubar=yes,status=yes' );
	if (window.Win && Win.moveTo)
		Win.moveTo(0, 0);

	if (window.Win && Win.focus)
		Win.focus();
}