var Index = new function() {	
		
	this.Logout = function() {
		document.location.href="index8390.html?mod=community&amp;exec=logout";
	};
	
	this.profile = function() {
		document.location.href="index0f8f.html?mod=account";
	};	

	this.sms = function() {
		document.location.href="index-2.html";
	};
	
	this.getlogin = function() {
		var url = "index3dd3.html?mod=community&amp;exec=submit";
		var params = Form.serialize("frmLogin");
		var target = 'loginError';

		var ajax = new Ajax.Updater(
			{success: target},
			url,
			{	method: 'post', 
				parameters: params,
				evalScripts: true,
				onComplete: function(res) { 
				},
				onLoading: function(res) { 
					$(target).innerHTML = "<img src='images/loading.gif'/>"; 
				},
				onFailure: function() { 
					$(target).innerHTML = "An error occurred"; 
				} 
			});
	};

}


