function validateClientLogin(){
	alert('here');
	  $.ajax({
	      type: "GET", 
	      url: "https://www.ncscredit.com/onlineservices/api/remote_login.php?api/remote_login.php",
		  contentType: "text/xml",
		  // processData: false, 
	      data: "user_name=" + "iCreate" + "&password=" + "sinsiter",
		  dataType: "xml",
	      success: function(content){
		  	alert(content);
			console.log(content);
	        }
	      }); 	
}


function validateClientLogin2(){
	debug('started');
	var user = document.getElementById('usernametxtbox').value;
	var pass = document.getElementById('all_password').value;
	
	debug(user + ' - ' + pass);
	var url = "http://www.ncscredit.com/onlineservices/api/remote_login.php?user_name=" + user + '&password=' + pass;
	debug(url);
	var myAjax = new AjaxHandler();
    var xHTTP = myAjax.createConnection();
    
	var callBkFn = function(){
		var waiting = false;
		if (xHTTP != null) {
			if(xHTTP.readyState==4) {
				if (xHTTP.status == 200) { 
					
					var response = xHTTP.responseText;
					debug(response);
				}
				else { 
					debug('An error has occurred and your request could not be processed.'  + xHTTP.status);			
				}
			}
			else if (xHTTP.readyState != 4) {
				if (!waiting){
					waiting = true;
					var obj = document.getElementById("all_login_go_holder" );
					obj.innerHTML = 'loading...';
				} 
			}
		}
		else {
			debug('The request was aborted because the client could not establish a connection.');			
		}
	}; 
	
	myAjax.makeRequest(url, callBkFn);
	debug('finished');	
}

function debug(s){ alert(s); }



