var isIE=document.all?true:false;

var host = window.location.host

function logout(obj){
	VitaminXP.Ajax.RequestUrl(obj,'http://'+host+'/ajax/login-out.php','logout=yes','POST','function','login_check')
	obj.innerHTML = '<table height="20" width="200"><tr><td align="center"><img src="img/loading_circle.gif"><br />Please Wait ...</td></tr></table>'
}

function login_check(txt,obj){
	if(txt == "OK"){
		if(isIE){
			history.go(0)
		}else{
			window.location.reload(true)
		}
	}else{
		obj.innerHTML = txt
	}
}

function LoginFollowup(element_id){
	setTimeout('ActivateProgress(\''+element_id+'\')',200);
	
	return true
}

function ActivateProgress(element_id){
	element(element_id).innerHTML = '<table height="20" width="200"><tr><td align="center"><img src="img/loading_circle.gif"><br />Please Wait ...</td></tr></table>'
}