// JavaScript Document
function LQtick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today, theday;
today = new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray(
"星期日",
"星期一",
"星期二",
"星期三",
"星期四",
"星期五",
"星期六");
theday = today.getYear()+"年" + [today.getMonth()+1]+"月" +today.getDate() +" "+ d[today.getDay()+1];
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours = "12:";
xfile = "午夜";
} else if (intHours < 12) {
hours = intHours+":";
xfile = "上午";
} else if (intHours == 12) {
hours = "12:";
xfile = "正午";
} else {
intHours = intHours - 12
hours = intHours + ":";
xfile = "下午";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes+":";
} else {
minutes = intMinutes+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = theday+" "+xfile+" "+hours+minutes+seconds;
document.getElementById("C_clock").innerHTML = timeString;
window.setTimeout("LQtick();", 100);
}
//************************检测函数 start*******************************

//检测浮点型数值
function LQ_ChkFloat(tcObj)
{ 
  if(tcObj=="undefined"|tcObj==null) return false;  //检测控件是否存在
  var lnValue=tcObj.value;
  if (lnValue=="")
    {
     tcObj.value=0;
	 return true;
	}
  	 lnValue=parseFloat(lnValue);
  if (isNaN(lnValue))
    {alert("数值字段填写了非数值字符，请重新填写！");
	 tcObj.focus();
	 tcObj.select();
	 return false;
	 }
  tcObj.value=LQ_FormatNum(lnValue,2);
  return true;
}

//检测整型数值
//obj：检测控件,canNull：是否允许为空
function LQ_ChkInt(toObj,canNull)
{ 
  if(toObj=="undefined"|toObj==null) return false;  //检测控件是否存在
  var lnObjValue=toObj.value;
  if (lnObjValue=="")
  { 
     if(!canNull) toObj.value=0;
	 return true;}
  lcValue=parseInt(lnObjValue);
  if (isNaN(lcValue))
    {alert("数量字段填写了非整数字符，请重新填写！");
	 toObj.focus();
	 toObj.select();
	 return false;
	 }
  if (lcValue<0)
     {alert("数量字段值不能小于 0 ，请重新填写！");	  
	  toObj.focus();
	  toObj.select();
	 return false;
	 }
  toObj.value=lcValue;
  return true;
}


//************检测非空字段******************************************
function LQ_ChkNull_Reg(toObj)
{
  if(toObj=="undefined"|toObj==null) return false;  //检测控件是否存在
  
   var lrReg=/^\s*$/;
   if(lrReg.test(toObj.value))
      return true;
   else
      return false;
}

//***************检测电话号码********************************
function LQ_Chkphone(toObj)
{ 
  if(toObj=="undefined"|toObj==null) return false;  //检测控件是否存在
  var lcValue=toObj.value;
  if(lcValue=="")return true;
  var lnLen=lcValue.length;
  for (lnIndex=0;lnIndex<lnLen;lnIndex++)
    {
	 lcText="1234567890-";
	 lnPosition=lcText.indexOf(lcValue.charAt(lnIndex));
	 if (lnPosition==-1)
	   {
	    alert("电话号码只允许填写数字和\"-\"，请从新填写！");
		toObj.select();
		return false;
		}
	 }
   return true;
}

//***************检测年月********************************
function LQ_Chkmonth(toObj)
{ 
  if(toObj=="undefined"|toObj==null) return false;  //检测控件是否存在
  var lcValue=toObj.value;
  if(lcValue=="")return true;
  var lnLen=lcValue.length;
  for (var lnIndex=0;lnIndex<lnLen;lnIndex++)
    {
	 lcText="1234567890-";
	 lnPosition=lcText.indexOf(lcValue.charAt(lnIndex));
	 if (lnPosition==-1)
	   {
	    alert("输入年月只允许是数字和\"-\"，请重新填写！");
		toObj.select();
		return false;
		}
	 }
   return true;
}

//***************检测邮箱*******************************
function LQcheckEmail(obj,num,objShow)  
{
var strm=obj.value;
var regm = /^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
 if (!strm.match(regm) && strm!="")
   {
	 if(num==1){
     alert("邮箱格式错误!\n\n请重新输入！正确例子：theone0750@163.com");
	 obj.select();
	 }else if(num==2)
	 {   
	    var spanObj=document.getElementById(objShow);
	 	spanObj.innerText="邮箱格式错误!正确例子：theone0750@163.com";
	 	obj.select();
	 }
     return false;
    } 
	if(num==2) document.getElementById(objShow).innerText="";
}

//禁止使用单引号和双引号
//var regArray="/^[\u4e00-\u9fa5]+$/"+"|$$|";
function LQ_FormSpecialChar(loForm)
{
	if(loForm=="undefined"|loForm==null) return false;  //检测控件是否存在
    var reg=/'+|"+/;	
	for(var i=0 ;i<loForm.elements.length;i++){
	var myTag=loForm.elements[i].tagName.toLowerCase();
	var myType=loForm.elements[i].type.toLowerCase();	
	var myCanSpecial=loForm.elements[i].canSpecial;
	
	if(myTag=="textarea")continue;	
	if(myTag=="input" && (myType=="button" | myType=="submit" | myType=="reset" | myType=="hidden"))continue;	
	if(myCanSpecial=="1")continue;
	
	if(reg.test(loForm.elements[i].value)){
		alert("输入内容不能含有\"单引号\"或\"双引号\"！");
		loForm.elements[i].focus();
		loForm.elements[i].select();
		return true;		
		}
	}
	return false;
}

//************************检测函数 end*******************************


//************************操作函数 start*******************************
//单选按扭控件 radio   初始值
//参数   tcOForm：表单名   tcObjID：radio控件名   tcValue：指定值
function LQ_InitializeRadio(tcOForm,tcObjID,tcValue)
{
  var loForm=document.getElementById(tcOForm);
  var lcObjID=document.getElementById(tcObjID);
  if (isNaN(tcValue)){
	  var lcValue=tcValue;
  }else{
	  var lcValue=parseInt(tcValue);
  }
  
  if(loForm=="undefined"|loForm==null) return false;    //检测表单是否存在
  if(lcObjID=="undefined"|lcObjID==null) return false;  //检测radio控件是否存在
  
   for(var lnIndex=0;lnIndex<loForm.elements.length;lnIndex++)
   {
	  var loElement=loForm.elements[lnIndex];
	  if(loElement.type.toLowerCase()=="radio"&&loElement.name==lcObjID.name){
          if(loElement.value==lcValue){
		   loElement.checked=true;
		   return false;
		  }
	  }
   }
  	
}

//下拉控件 select   初始值
//参数  tcObj: select控件名    tcValue：指定值
function LQ_InitializeSelect(tcObj,tcValue)
{
	var loObj=document.getElementById(tcObj);
	if(loObj=="undefined"|loObj==null) return false;  //检测select控件是否存在
	
	for(var lnIndex=0;lnIndex<loObj.options.length;lnIndex++)
	{
	   if(loObj.options[lnIndex].value==tcValue) {loObj.options[lnIndex].selected=true;}
	}
}

//复选框
function LQ_InitializeCheckbox(tcOForm,tcObjID,tcArrayStr)
{
  var loForm=document.getElementById(tcOForm);
  var lcObjID=document.getElementById(tcObjID);
    
  if(loForm=="undefined"|loForm==null) return false;    //检测表单是否存在
  if(lcObjID=="undefined"|lcObjID==null) return false;  //检测radio控件是否存在
  if(tcArrayStr=="") return false;  
  
  var laArray=tcArrayStr.split(",");

   for(var lnIndex=0;lnIndex<loForm.elements.length;lnIndex++)
   {
	  var loElement=loForm.elements[lnIndex];
	  if(loElement.type.toLowerCase()=="checkbox"){
	    for(lnIndex_i=0;lnIndex_i<laArray.length;lnIndex_i++){
		  if(loElement.value==laArray[lnIndex_i]) loElement.checked=true;
		}
	  }
	}
}

//将textArea的字符转换后输出
function  LQ_SQLDecode(lcStr)  
{
   if(lcStr=="undefined"|lcStr==null) return false; 
   if(lcStr=="") return lcStr;
   
   var lcSQLDecodeStr=lcStr;   
   lcSQLDecodeStr=lcSQLDecodeStr.replace(/<br>/g,String.fromCharCode(13)+String.fromCharCode(10));
   lcSQLDecodeStr=lcSQLDecodeStr.replace(/&nbsp;/g,String.fromCharCode(32));
   lcSQLDecodeStr=lcSQLDecodeStr.replace(/&quot;/g,String.fromCharCode(34));//双引号
   lcSQLDecodeStr=lcSQLDecodeStr.replace(/&#39;/g,String.fromCharCode(39));//单引号
   
   return lcSQLDecodeStr;
}

//转换HTM中的特殊字符
function LQ_HtmlCharReplace(lcStr)
{
	if(lcStr=="undefined"|lcStr==null) return false; 
    if(lcStr=="") return lcStr;
   
	if(lcStr.indexOf("&quot;") !=-1) lcStr= lcStr.replace(/&quot;/gi,'"');
	if(lcStr.indexOf("&#039;") !=-1) lcStr= lcStr.replace(/&#039;/gi,"'");
	if(lcStr.indexOf("&lt;") !=-1) lcStr= lcStr.replace(/&lt;/gi,"<");
	if(lcStr.indexOf("&gt;") !=-1) lcStr= lcStr.replace(/&gt;/gi,">");
	
	return lcStr;
}

//打开新窗体
function LQ_OpenWin(tcPopUrl,tcWinName,tnWinX,tnWinY)
{
	if(!tcWinName) tcWinName="_pre";
	if(!tnWinX) tnWinY=700;
	if(!tnWinY) tnWinY=500;
	window.open(tcPopUrl,tcWinName,"width="+tnWinX+",height="+tnWinY+",scrollbars=yes,status=yes");
}

//文章内容的字体大小转换
function lQ_changeFont(lcfontsize){
	var loObj = document.getElementById("content_box"); 
	loObj.style.fontSize=lcfontsize;
}


//格式化浮点数*******************************************************
function LQ_FormatNum(tnNumber,tnNAfterDot)
{
   if(tnNAfterDot<=0)return tnNumber;
   
   var lnMultiple=Math.pow(10, tnNAfterDot);   
   var lnNum=Math.round(tnNumber*lnMultiple)/lnMultiple;
   var i=0;   
   if(Math.floor(lnNum)==lnNum)
   {
      lnNum+=".";
	  for(i=0;i<tnNAfterDot;i++) lnNum+="0";
   }
   else 
   {
	  var laFraction=lnNum.toString().split(".");	
	  for(lnIndex=laFraction[1].length;lnIndex<tnNAfterDot;lnIndex++)
	      lnNum+="0";
   }      
   return lnNum;
}
//*******************************************************************

//获取绝对坐标
function LQ_GetPosLeft(loObj) 
{ 
var loL = loObj.offsetLeft; 
	while(loObj = loObj.offsetParent) 
	{ 
	  loL += loObj.offsetLeft; 
	} 
return loL; 
}

function LQ_GetPosTop(loObj) 
{ 
var loT = loObj.offsetTop; 
	while(loObj = loObj.offsetParent) 
	{ 
	  loT += loObj.offsetTop; 
	} 
return loT; 
}

//全选与返全选
function LQ_onclick_selectAll(tcObj)
{  
   //if(document.getElementById("C_noRecord")=="undefined"|document.getElementById("C_noRecord")==null) return false;  //检测有无记录
   if(tcObj=="undefined"|tcObj==null) return false;  //检测控件是否存在
   var mytable=document.getElementById("LQTable");
   if(mytable=="undefined"|mytable==null) return false;  //检测控件是否存在
   var checkState=tcObj.checked;
   
   for(i=1;i<mytable.rows.length;i++)
   {
      mytable.rows(i).cells(0).childNodes[0].checked=checkState;
   }
   
}

//删除所选的记录
function LQ_Select_Del(tnFlg)
{
 if(tnFlg=="2") {
 alert("该功能在此页面被锁定！");
 return false;
 }
 var loObj=document.getElementById("LQ_Form");
 var loObjCheckbox= document.getElementsByName("F_Id[]");
 var lnObjLen= loObjCheckbox.length;
 var llFlg=false;
 for(var lnIndex=0;lnIndex<lnObjLen;lnIndex++)
 {
   if (loObjCheckbox[lnIndex].checked==true)llFlg=llFlg||true;
 }
 
 if(!llFlg){return false;}
 
 if(confirm("确认要删除吗？"))
 {
  loObj.submit();
 }
}

//关键字查找
function LQchksearchKeyword(toobj)
{
    var reg=/'+|"+/;	
	if(reg.test(toobj.value)){
		alert("不能输入 \" 或 \' ");
		toobj.select();
	}
	if(toobj.value=="") toobj.value="请输入关键字";
}
function LQclearKeyword(toobj)
{
   if(toobj.value=="请输入关键字") toobj.value="";
}
//查找跳转
function LQsecrchKeywor()
{
    var lcKeyWord=document.getElementById("F_keywords").value;
	if(lcKeyWord=="请输入关键字") return false;
//    var myescapestr=escape(lcKeyWord);
//    lcKeyWord=myescapestr.toLowerCase();  //在linux服务器用这个
	location.href="/searchlist.php?tcvalue="+encodeURIComponent(lcKeyWord);
}

//查找跳转
function LQsecrchfeedback()
{
    var lcKeyWord=document.getElementById("F_keywords").value;
	if(lcKeyWord=="请输入关键字") return false;
//    var myescapestr=escape(lcKeyWord);
//    lcKeyWord=myescapestr.toLowerCase();  //在linux服务器用这个
	location.href="/feedbacklist.php?tcvalue="+encodeURIComponent(lcKeyWord);
}

//文章操作 start

//----添加到收藏夹
function articleAddajax(tcValue){
	displayLoading();
	if(tcValue=="")return false;
	var url="processingdata/ajaxget.php?tnid=2&lcajaxvalue="+tcValue;
	var afterGet=function(responseText){
		hiddenLoading()
		var larecords=responseText.split("#-00-#");
		if(larecords[0]=="true"){
		   alert(larecords[1]);
		}else if(larecords[0]=="false"){
		  alert(larecords[1]);
		}else{
		  alert("操作出错");
		}
		 return false;	
	}	
	ajaxRequestGetData(url,true,afterGet);	
}

//

//设为首页&加入收藏
var isIE=(document.all&&document.getElementById&&!window.opera)?true:false; 
var isMozilla=(!document.all&&document.getElementById&&!window.opera)?true:false; 
var isOpera=(window.opera)?true:false;
var seturl='url(#default#homepage)';
var weburl=window.location.href;
var webname=document.title;

function myhomepage()	{
	if(isMozilla){
		try {netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");} 
		catch (e){alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'");}
		var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
		prefs.setCharPref('browser.startup.homepage',weburl);
	}
	if(isIE){
		this.homepage.style.behavior=seturl;this.homepage.sethomepage(weburl); 
	}
}

function addfavorite()
{

	if(isMozilla){
		if (document.all){ window.external.addFavorite(weburl,webname);}
		else if (window.sidebar){ window.sidebar.addPanel(webname, weburl,"");}
	}
	if(isIE){window.external.AddFavorite(weburl, webname);}	
}

//选语言触发事件
function LQonchange_lang(toObj){
  	document.getElementById("F_nhidlangId").value=toObj.value;
}

function LQSetpop_button(tnpopId)
{
 window.showModalDialog("pop_treeView.php?tnid="+tnpopId,"","dialogWidth:615px;DialogHeight=450px;status:no;scroll:no;");		
}

function LQGetCodeImg($tcurl,$tcImgobj){
  document.getElementById($tcImgobj).src=$tcurl;	
}


//排序 start
function LQSelect_LR(tnValue){
if(tnValue==1){	
var loObjS=document.getElementById("F_SortL");
var loObjE=document.getElementById("F_SortR");
}else{
var loObjS=document.getElementById("F_SortR");
var loObjE=document.getElementById("F_SortL");
}

var lnSlength= loObjS.length;
if(lnSlength==0) return false;
var lnElength= loObjE.length;
for(var lnindex=0; lnindex<loObjS.length;lnindex++){
      if(loObjS[lnindex].selected) {
      	var option = new Option(loObjS[lnindex].text, loObjS[lnindex].value);
      	loObjE[lnElength++]=option;
      	loObjS[lnindex--] = null;
      }
    }
document.getElementById("checkAllL").checked=false;	
document.getElementById("checkAllR").checked=false;	
}

function LQSelect_all(toObj,tcValue){
if(tcValue=="L"){	
var loObj=document.getElementById("F_SortL");
}else{
var loObj=document.getElementById("F_SortR");
}

   loObj.focus();
   if(toObj.checked==true){ 
    for(lnIndex=0;lnIndex<loObj.options.length;lnIndex++){
     loObj.options[lnIndex].selected=true;
    }
   }else
   {
    loObj.selectedIndex=-1;
	toObj.checked=false;
   }
}
//排序 end

//获取表单kindeditor的值
function LQkindeditorSubmit(toForm){
	   for(var lnIndex=0;lnIndex<toForm.elements.length;lnIndex++)
	   {
          var loElement=toForm.elements[lnIndex];
		  if(loElement.type.toLowerCase()=="textarea"&&loElement.valid=="true"){
			  document.getElementById(loElement.id).value=KE.util.getData(loElement.id);
		  }
	   }
}

//友情连接跳转
function LQLinkHref(obj){
	if(obj.value!=""){
	 window.open (obj.value) 	
	}
}

//设置生成缩略高宽
function LQSet_wh(tnObj){
	if (tnObj.checked==true){
		document.getElementById("F_width").disabled=false;
		document.getElementById("F_height").disabled=false;
	}else{
		document.getElementById("F_width").disabled=true;
		document.getElementById("F_height").disabled=true;		
	}
}

//图片的自动缩放
function LQDrawPhotoImage(ImgD,inputheight,inputwidth)
{ 
var image=new Image(); 
image.src=ImgD.src;
if(image.width>0 && image.height>0)
{ 
   flag=true; 
   if(image.width/image.height >= 1)
   { 
       if(image.width>inputheight)
    {
         ImgD.width=inputheight; 
         ImgD.height=(image.height*inputheight)/image.width; 
       }
    else
    { 
         ImgD.width=image.width;
         ImgD.height=image.height; 
       }
   } 
   else
   { 
       if(image.height>inputwidth)
    {
         ImgD.height=inputwidth; 
         ImgD.width=(image.width*inputwidth)/image.height; 
       }
    else
    { 
         ImgD.width=image.width;
         ImgD.height=image.height; 
       }
   } 
}
}

//发表在线调查
function LQonlinesurveyAjaxPost(){
 var loForm=document.getElementById("LQForm");  //操作表单
 var lcesurveyStr="";
 var lnIndex_i;
   for(var lnIndex=0;lnIndex<loForm.elements.length;lnIndex++)
   {
	  var loElement=loForm.elements[lnIndex];
	  if(loElement.type.toLowerCase()=="checkbox"){
		if(loElement.checked==true){
				lcesurveyStr+=","+loElement.value;
		}
	  }
	}
	
 var llflg=lcesurveyStr.indexOf(",");
 if(llflg==0){
	 document.getElementById("F_cosFeedback").value=lcesurveyStr.substring(1);
 }else{
	 alert("您好!请选择接受调查的项目.");
	 return false;
 }

 URL="../processingdata/ajaxpost.php?tnid=2";
 displayLoading();
 var afterGet=function(responseText){
 hiddenLoading();
  var laOSarray=responseText.split("#-00-#");
  if(laOSarray[0]=="true"){
     alert("提交成功!");
	 document.getElementById("LQForm").reset();
  }else if(laOSarray[0]=="false"){
	if(laOSarray[1]!="")
     alert("提交失败!原因：\n"+laOSarray[1]+"!");
	else
	 alert("提交失败!");
  }else{
    alert("无权操作!");
  }	
 }	
 var errGet=function(oXmlHttp){
		 alert("运行错误.\n\n"+oXmlHttp.statusText);		 
 }
 
  ajaxRequestFormData(loForm,URL,false,afterGet,errGet);
	
}

function clearEditor(id) {
          KE.g[id].iframeDoc.open();
          KE.g[id].iframeDoc.write(KE.util.getFullHtml(id));
          KE.g[id].iframeDoc.close();
          KE.g[id].newTextarea.value = '';
}


//行政投诉
function AjaxPosttousuForm(){
 var loForm=document.getElementById("LQ_Form");  //操作表单
 LQkindeditorSubmit(loForm);
 var loChk = new LQ_ValidForm(loForm);  
 loChk.bind();
 if(!loChk.doValid()) return false;
 if(LQ_FormSpecialChar(LQ_Form))return false;
 URL="../processingdata/ajaxpost.php?tnid=4";
 displayLoading();
 var afterGet=function(responseText){
 hiddenLoading();
  var laOSarray=responseText.split("#-00-#");
  if(laOSarray[0]=="true"){
     alert("提交成功!");
	 loForm.reset();
	 clearEditor("FT_cclContent");
  }else if(laOSarray[0]=="false"){
	if(laOSarray[1]!="")
     alert("提交失败!原因：\n"+laOSarray[1]+"!");
	else
	 alert("提交失败!");
  }else{
    alert("无权操作!");
  }	
 }	
 var errGet=function(oXmlHttp){
		 alert("运行错误.\n\n"+oXmlHttp.statusText);		 
 }
 
  ajaxRequestFormData(loForm,URL,false,afterGet,errGet);
	
}

function AjaxPostFeedbackForm(){
 var loForm=document.getElementById("LQ_Form");  //操作表单
 LQkindeditorSubmit(loForm);
 var loChk = new LQ_ValidForm(loForm);  
 loChk.bind();
 if(!loChk.doValid()) return false;
 if(LQ_FormSpecialChar(LQ_Form))return false;
 URL="../processingdata/ajaxpost.php?tnid=6";
 displayLoading();
 var afterGet=function(responseText){
 hiddenLoading();
  var laOSarray=responseText.split("#-00-#");
  if(laOSarray[0]=="true"){
     alert("提交成功!");
	 loForm.reset();
	 clearEditor("FT_cfbContent");
  }else if(laOSarray[0]=="false"){
	if(laOSarray[1]!="")
     alert("提交失败!原因：\n"+laOSarray[1]+"!");
	else
	 alert("提交失败!");
  }else{
    alert("无权操作!");
  }	
 }	
 var errGet=function(oXmlHttp){
		 alert("运行错误.\n\n"+oXmlHttp.statusText);		 
 }
 
  ajaxRequestFormData(loForm,URL,false,afterGet,errGet);	
}


//密码复位
// ajax 审核  操作文件:processingdata/ajaxget.php
//参数 1 tnid  操作标记   2  ID
function LQpasswordReset(tnajaxFlg,tcValue)
{
   if(confirm('确认要复位吗？')){
   }else{ return false;}
   if(tcValue=="") return false;
   var url="../../processingdata/ajaxget.php?tnid="+tnajaxFlg+"&lcajaxvalue="+tcValue;
   displayLoading();
   var afterGet=function(responseText){
   hiddenLoading();
   var laOSarray=responseText.split("#-00-#");
	  if(laOSarray[0]=="true"){
		 alert("提交成功!");
	  }else if(laOSarray[0]=="false"){
		if(laOSarray[1]!="")
		 alert("提交失败!原因：\n"+laOSarray[1]+"!");
		else
		 alert("提交失败!");
	  }else{
		alert("无权操作!");
	  }	
   }	
 ajaxRequestGetData(url,true,afterGet);		
}


//   会员操作***********************start********************************  //
//会员登陆
function LQulogin(){
	var loForm=document.getElementById("LQForm");  //操作表单
	 if(LQ_FormSpecialChar(loForm))return false;
	 if(document.getElementById("F_cuAccount").value==""){
		 alert("帐号不能为空");
		 return false;
	 }
	 if(document.getElementById("F_cuPassword").value==""){
		 alert("密码不能为空");
		 return false;
	 }
     loForm.submit();
}

//忘记密码录入
function AjaxPostforgetPassForm(){
 var loForm=document.getElementById("LQ_Form");  //操作表单
 LQkindeditorSubmit(loForm);
 var loChk = new LQ_ValidForm(loForm);  
 loChk.bind();
 if(!loChk.doValid()) return false;
 if(LQ_FormSpecialChar(LQ_Form))return false;
 URL="../processingdata/ajaxpost.php?tnid=8";
 displayLoading();
 var afterGet=function(responseText){
 hiddenLoading();
  var laOSarray=responseText.split("#-00-#");
  if(laOSarray[0]=="true"){
     alert("提交成功!");
	 loForm.reset();
	 clearEditor("FT_cclContent");
  }else if(laOSarray[0]=="false"){
	if(laOSarray[1]!="")
     alert("提交失败!原因：\n"+laOSarray[1]+"!");
	else
	 alert("提交失败!");
  }else{
    alert("无权操作!");
  }	
 }	
 var errGet=function(oXmlHttp){
		 alert("运行错误.\n\n"+oXmlHttp.statusText);		 
 }
 
  ajaxRequestFormData(loForm,URL,false,afterGet,errGet);	
}

//会员密码复位
// ajax 审核  操作文件:processingdata/ajaxget.php
//参数 1 tnid  操作标记   2  ID
function LQUserpasswordReset(tnajaxFlg,tcValue)
{
   if(confirm('确认要复位吗？')){
   }else{ return false;}
   if(tcValue=="") return false;
   var url="../../processingdata/ajaxget.php?tnid="+tnajaxFlg+"&lcajaxvalue="+tcValue;
   displayLoading();
   var afterGet=function(responseText){
   hiddenLoading();
   var laOSarray=responseText.split("#-00-#");
	  if(laOSarray[0]=="true"){
		 alert("提交成功!");
	  }else if(laOSarray[0]=="false"){
		if(laOSarray[1]!="")
		 alert("提交失败!原因：\n"+laOSarray[1]+"!");
		else
		 alert("提交失败!");
	  }else{
		alert("无权操作!");
	  }	
   }	
 ajaxRequestGetData(url,true,afterGet);		
}
//   会员操作***********************end********************************  //


// ajax 审核  操作文件:processingdata/ajaxget.php
//参数 1 tnid  操作标记   2  ID    3  操作值   4  文件级别
function LQSH(tnajaxFlg,tnid,tnsta,tnmyrow,tnfllor)
{
 var url=tnfllor+"processingdata/ajaxget.php?tnid="+tnajaxFlg+"&tnxid="+tnid+"&lcajaxvalue="+tnsta;
 displayLoading();
 var afterGet=function(responseText){
 hiddenLoading();
 var laOsflg_array=responseText.split("#-00-#");
	 if(laOsflg_array[0]=="true"){
	  if(tnsta==1){
	   document.getElementById("SH"+tnmyrow).style.display="none";
	   document.getElementById("FS"+tnmyrow).style.display="";
	  }else{
	   document.getElementById("SH"+tnmyrow).style.display="";
	   document.getElementById("FS"+tnmyrow).style.display="none";
	  }
 }else if(laOsflg_array[0]=="false"){
  alert("操作失败！"+laOsflg_array[1]);	 
 }else if(tempText==""){
  alert("您没有此权限,请与管理员联系!");
 }
 }
 ajaxRequestGetData(url,true,afterGet);
}

//************************操作函数 end*******************************

//******************************************************
// 包含文件 用法： $import('../include/mian.js', 'js');
//                 $import('../style/style.css', 'css');
//******************************************************
function $LQ_Import(tcPath, tcType){
  var lnIndex, 
      lcBase, 
      lcSrc = "jsCommonFun.js", 
      lcScripts = document.getElementsByTagName("script"); 
 
 for (lnIndex = 0; lnIndex < lcScripts.length; lnIndex++) {
      if (lcScripts[lnIndex].src.match(lcSrc)) {
          lcBase = lcScripts[lnIndex].src.replace(lcSrc, "");
          break;
      }
  }
 
  if (tcType == "css") {
      document.write("<" + "link href=\"" + lcBase + tcPath + "\" rel=\"stylesheet\" type=\"text/css\"></" + "link>");
  } else {
      document.write("<" + "script src=\"" + lcBase + tcPath + "\"></" + "script>");
  }
}

$LQ_Import("checkFormClass.js", 'js');
$LQ_Import("zxml.js", 'js');
$LQ_Import("../kindeditor/kindeditor.js", 'js');