function clearForm(form){
		if(confirm("Are you sure you want to continue?")){
		document.forms[0].reset();
	}
}

function logout(){
	if(confirm("Are you sure you want to log out?")){
		var url = base_path+"/control.php?action=logout";
		new Ajax.Request(url,{method:'post',
					onSuccess: function(transport){
					var response = transport.responseText.split("::");	
						if(response[0]=="ok") {
							location.href = base_path;		
						}  else {
							alert(transport.responseText);
							}
				},
					onFailure: function(){ 
					alert("System Error!");
				}
			}
		);
//		Fader.hideWaiting("Please wait....");
	}
}

function downloadRss(){
		var url = base_path+"/control.php?action=rssdownload";
		new Ajax.Request(url,{method:'post',
					onSuccess: function(transport){
					var response = transport.responseText.split("::");	
						if(response[0]=="ok") {
							//location.href = "/"+base_path;		
						}  else {
							alert(transport.responseText);
							}
				},
					onFailure: function(){ 
					alert("System Error!");
				}
			}
		);
//		Fader.hideWaiting("Please wait....");
}
