do_admin_dictionaryValue_edit = function(id,did,parent){
	this.id = id;
	this.did =did;
	this.parentId= parent;
	if (!Longway.ValidationRuleFactory.validate("admin_dictionaryValue_form")){
		return false;
	}
	var opt = {method: "post", postBody: Form.serialize($("admin_dictionaryValue_form")),onSuccess: do_admin_dictionaryValue_edit_success,onFailure: processFailure} 
	new Ajax.Request(toUTF8("/admin/dictionaryValue/doEdit.jhtml"), opt);	
}
do_admin_dictionaryValue_edit_success = function(response){
	if (!processResponse(response)) {
		return;
	}
	if(this.id ==0){
		alert("添加成功!");
	}else{
		alert("修改成功!");
	}
	window.location.href="/admin/dictionaryValue/goPage.jhtml?did="+this.did+"&parent="+this.parentId;
}
do_admin_dictionaryValue_delete = function(id){
	if(confirm("你确定要删除此条信息？")){
		var opt = {method: "post", parameters: "ids=" + id,onSuccess: do_admin_dictionaryValue_delete_success,onFailure: processFailure} 
		new Ajax.Request(toUTF8("/admin/dictionaryValue/doDelete.jhtml"), opt);
	}
}
do_admin_dictionaryValue_delete_success = function(){
	alert("删除成功!");
	window.location.reload();
}
///
go_admin_dictionaryValue_list = function(div,id,name,did,type){
 
	new Ajax.Updater(div,toUTF8("/admin/dictionaryValue/goList.jhtml"),{method: "post", parameters: "id=" +  id+"&name="+name+"&type="+type+"&did="+did,evalScripts:true});
}
go_admin_dictionaryValue_value = function(div,id){
	new Ajax.Updater(div,toUTF8("/admin/dictionaryValue/goValue.jhtml"),{method: "post", parameters: "id=" + id,evalScripts:true});
}
go_info = function ()
{
	alert("您的手机号还未验证,请验证手机号后再做此操作!");
}
