5 include( '/elements/logout.html');
6 This is the <a href="javascript:void()" onClick="logout();">logout</a> link.
9 <SCRIPT TYPE="text/javascript">
12 // count args; build URL
13 var url = "<% $fsurl. 'loginout/logout.html' %>";
15 var xmlhttp = rs_init_object();
16 xmlhttp.open("GET", url, false, "magic", "notyet");
17 xmlhttp.setRequestHeader("If-Modified-Since", "Sat, 1 Jan 2000 00:00:00 GMT");
20 if (xmlhttp.readyState != 4) {
21 alert("Logout failed: readyState is " + xmlhttp.readyState);
25 if (xmlhttp.status != 200) {
26 alert("Logout failed: status is " + xmlhttp.status);
28 var data = xmlhttp.responseText;
29 // alert('received response: ' + data);
30 if ( data.indexOf("<b>System error</b>") > -1 ) {
32 if ( w = window.open("about:blank") ) {
33 w.document.write(data);
35 // popup blocking? should use an overlib popup instead
36 alert("Error popup disabled; try disabling popup blocking to see");
39 window.location = "<% $fsurl. 'loginout/logout.html' %>";