function logOut(){
try{
  var agt=navigator.userAgent.toLowerCase();
  if (agt.indexOf("msie") != -1) {
    // IE clear HTTP Authentication
    document.execCommand("ClearAuthenticationCache");
  } 
  else {
    var xmlhttp = createXMLObject();
    xmlhttp.open("GET",".force_logout_offer_login_mozilla",true," ","");
    xmlhttp.send("");
    xmlhttp.abort();
  }
  //parent.top.location.reload();
  top.window.location.href="/";
} catch(e) {
// There was an error
alert("there was an error");
}
}

function createXMLObject() {
	try {
		if (window.XMLHttpRequest) {
			xmlhttp = new XMLHttpRequest();
		}
		// code for IE
		else if (window.ActiveXObject) {
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	} catch (e) {
		xmlhttp=false
	}
	return xmlhttp;
}

	function check_set_all(form,status){
		for(i =0; i < form.elements.length; i++){
			if(form.elements[i].type == 'checkbox'){
				form.elements[i].checked = status;
			}
		}
	}
