    function dominoLogin(data){
    dojo.xhrPost({
    url: '/names.nsf?login',
    content: data,
    load: function (data) {
    if( String(data).substring(0,5) == "LOGIN")
    {
    dojo.byId("loginMsg").style.color = "green"
    dojo.byId("loginMsg").style.backgroundColor = "transparent"
    dojo.byId("loginMsg").innerHTML = "Please Wait..."
    //location.reload(); original code
    
    //my redirect
    //alert(location.href);
    //alert(location.pathname);
    
    relativePath=window.location.pathname;
	nsfPos = relativePath.indexOf(".nsf");
	path = relativePath.substring(0, nsfPos+4);
    location=path+"/home_int.xsp";

    } else {
    if ( dojo.cookie('DomAuthSessId') != null || dojo.cookie('LtpaToken') != null )
    {
    dojo.byId("loginMsg").style.color = "red"
    dojo.byId("loginMsg").style.backgroundColor = "transparent"
    dojo.byId("loginMsg").innerHTML = "Not Authorized."
    dojo.cookie('DomAuthSessId', null, { path: '/', domain: 'qtzar.com' });
    dojo.cookie('LtpaToken', null, { path: '/', domain: 'qtzar.com' });
    } else {
    dojo.byId("loginMsg").style.color = "red"
    dojo.byId("loginMsg").style.backgroundColor = "transparent"
    dojo.byId("loginMsg").innerHTML = "Invalid User/Password."
    }
    }
    },
    error: function (error) {
    console.error ('Error: ', error);
    }
    });
    } 


