function check_head(){
	if(document.LoginFrom.username.value==""){
		ymPrompt.errorInfo({title:'用户登陆',message:'您没有输入用户名！'})
		return false;
	}
	if(document.LoginFrom.password.value==""){
		ymPrompt.errorInfo({title:'用户登陆',message:'您没有输入密码！'})
		return false;
	}
	return true;
}
function check_sou(){
	if(document.soufrom.wd.value==""||document.soufrom.wd.value=="请输入关键字"){
		ymPrompt.errorInfo({title:'搜索',message:'您没有输入关键字！'})
		return false;
	}
	return true;
}
function handleStateChange2(k) {
    try {
       if (xmlHttp.readyState == 4) {
           if (xmlHttp.status == 200){
           	if(xmlHttp.responseText=="a") ymPrompt.succeedInfo({title:'加好友',message:'添加成功'});
           	if(xmlHttp.responseText=="b") ymPrompt.errorInfo({title:'加好友',message:'已经是你的好友了'});
           	}
       }
    }
    catch (e) {alert(e);}
}
function jia(u){
	if(u=="游客"){
		ymPrompt.errorInfo({title:'加好友',message:'游客没法加为好友！'})
		return false;
	}
	if(u=="{$user}"){
		ymPrompt.errorInfo({title:'加好友',message:'对不起，你不能加自已！'})
		return false;
	}
	re_url2('/api.php?do=jiahaoyou&u='+u,"");
	
}