
//返回指定项目表中的记录数
function formGetCount(contextroot,projectid,tableid,where){
	if(where==undefined || where==null || where==""){
		return;
	}
	var ret = 0;
	var myData = {projectid:projectid,tableid:tableid,where:where};
	try{
	$.ajax( {
   		url: contextroot + "/dbportal.ajaxcount.do",
   		type: "POST",
   		async: false,
   		data: myData,
   		success: function(msg){
			ret = msg;
   		}
 	});
	}catch(e){
		//
	}
	return ret;
}

function formCheckCodeOk(contextroot,checkCode){
	var ret=true;
	var myData = {checkcodeimg:checkCode};
	$.ajax( {
		url: contextroot+"/dbportal.ajaxcheckcodeok.do",
		type: "POST",
		async: false,
		data: myData,
		success: function(msg){
		if(msg=="ERROR") ret = false;
		}
	});
	return ret;
}


