function reqAjax(reqUrl,reqParams,callFunction,reqType,reqDataType,queryImg,queryBut,param_timeout,param_async,param_cache){if(typeof(reqParams)!="string"){reqParams=""}if(typeof(reqDataType)=="undefined"){reqDataType="json"}if(typeof(reqType)=="undefined"||reqType==""){reqType="POST"}if(typeof(param_timeout)=="undefined"||param_timeout==""){param_timeout=6000}if(typeof(param_async)!="undefined"&&param_async!=""){$.ajaxSetup({"async":param_async})}if(typeof(param_cache)!="undefined"&&param_cache!=""){$.ajaxSetup({"cache":param_cache})}$.ajax({"type":reqType,"url":reqUrl,"timeout":param_timeout,"contentType":"application/x-www-form-urlencoded","dataType":reqDataType,"data":reqParams,"beforeSend":function(XMLHttpRequest){if(typeof(queryImg)=="string"){$("#"+queryImg).show()}if(typeof(queryBut)=="string"){$("#"+queryBut)[0].disabled=true}},"success":function(msg,textStatus){if(typeof(callFunction)=="string"){eval(callFunction+"('"+msg+"')")}else{if(typeof(callFunction)=="function"){callFunction.call(callFunction,msg)}}},"complete":function(XMLHttpRequest,textStatus){if(typeof(queryImg)=="string"){$("#"+queryImg).hide()}if(typeof(queryBut)=="string"){$("#"+queryBut)[0].disabled=false}},"error":function(XMLHttpRequest,textStatus,errorThrown){if(typeof(errorThrown)=="undefined"){errorThrown=textStatus}if(typeof(errorThrown)=="undefined"){try{errorThrown=XMLHttpRequest.responseText}catch(e){errorThrown="requset parse error！"}}if(reqDataType=="json"){errorThrown=errorThrown.replace(/\<br\s*\/\>/gi,"");errorThrown=errorThrown.replace(/[\s+\t+]+/ig,"");var json_msg=eval('({error:"'+errorThrown+'"})')}else{var json_msg=errorThrown}if(typeof(callFunction)=="string"){eval(callFunction+"('"+json_msg+"')")}else{if(typeof(callFunction)=="function"){callFunction.call(callFunction,json_msg)}}}})};
