/**
 *
 *	
 *
 */

function doLogin() {	
	var ajax = new _aim_Ajax("components/users/login/php/doLogin.php",
								{
									"username" 	: 	getobj("login_username").value,
									"password" 	: 	getobj("login_password").value
								}
								,"POST");
	ajax.createRequest();
	ajax.openConnection();
	ajax.sendRequest();
	    ajax.xmlHttp.onreadystatechange = function () {
		if(ajax.xmlHttp.readyState == 4) {
			if(ajax.xmlHttp.status == 200) {
				/* action */

				if(ajax.xmlHttp.responseText == "ok") {
					window.location = "index.php"; 					
					//alert(ajax.xmlHttp.responseText);
				} else {
					_customPopup.createPopup(ajax.xmlHttp.responseText);
				}
	          	/* end action */
	          	delete ajax;
	
			}
		}
	}
}	
