﻿// 创建 phprpc 客户端对象 rpc
phprpc_client.create('rpc');

function chk_uname(uname){
		rpc.ck_username(uname,function (result){

			rst_id=document.getElementById('checkDiv');			
			if(result=='Y'){
				rst_id.innerHTML='<font color="red">恭喜您，用户名可以注册！</font>';				
			}
			if(result=='N'){
				rst_id.innerHTML='<font color="red">对不起，该用户名已经被注册！</font>';				
			}
		});
}

// 定义当 rpc 客户端初始化（use_service）完毕后执行的内容
rpc.onready = function () {

}