function editMainInfo(){if(Fe.G("extDataType").value.length<=0){insertMainInfo();return false}var A="/page/card/card"+Fe.G("extDataType").value+".html?t="+new Date().getTime();Fe.Ajax.get(A,function(B){setTimeout(function(){_cardDialog=Fe.Dialog.open(B.responseText,{title:"\u7f16\u8f91\u57fa\u672c\u4fe1\u606f\u680f",width:"440px",height:"500px",buttonbar:true,buttonAccept:true,buttonCancel:true,contentType:"HTMLString",buttonAcceptValue:"\u786e\u5b9a",buttonCancelValue:"\u53d6\u6d88",locked:true});_cardOpen=true;var E=Fe.G("inputMainInfo").getElementsByTagName("select"); for(var H=0,C=E.length;H1){for(var D=1,B=listType[C].length;D500){alert("\u6982\u8ff0\u8d85\u8fc7250\u5b57\uff08500\u5b57\u8282\uff09\uff0c\u8bf7\u91cd\u65b0\u586b\u5199");flag=false;return false}return flag}var _imgDialog;function insertSummary(){setTimeout(function(){_imgDialog=Fe.Dialog.open("/page/uploadImg_card.html",{title:"\u7f16\u8f91\u6982\u8ff0",width:"450px",height:"540px",buttonbar:true,buttonAccept:true,buttonCancel:true,contentType:"HTMLUrl",buttonAcceptValue:"\u786e\u5b9a",buttonCancelValue:"\u53d6\u6d88",locked:true});_imgDialog.onaccept=function(B){if(checkSummaryCharNum(A)){A.G("spphotoform").submit()}B.returnValue=false}},200);nslog(location.href,70)}function deleteSummary(){if(confirm("\u5220\u9664\u540e\u8d44\u6599\u4e0d\u53ef\u6062\u590d\uff01\n\u786e\u5b9a\u8981\u5220\u9664\uff1f")){Fe.G("inputShowSummaryDiv").style.display="none";Fe.G("summaryImgId").value="";Fe.G("summaryImgInfo").value="";Fe.G("summarySummary").value=""}else{return false}controlInsertButton()}function showSummary(){var C=Fe.G("summaryImgInfo").value;var B=Fe.G("summaryImgId").value;var D=Fe.G("summarySummary").value;var A="";if(B.length>0){A+='
';A+='';A+='';if(C.length>0){A+='
'+showInputData(C)+"
"}A+="
"}if(D.length>0){A+="

\u6982\u8ff0

"+showInputData(D)}A+='
';setTimeout(function(){if(Fe.G("canEditSummary")){A=Fe.G("canEditSummary").innerHTML+A}Fe.G("cardSummary").innerHTML=A;if(B.length<=0&&D.length<=0){Fe.G("inputShowSummaryDiv").style.display="none"}else{Fe.G("inputShowSummaryDiv").style.display="block"}controlInsertButton()},200)}function controlInsertButton(){if(!Fe.G("insertButton")){return false}var B=true,A=true;if(extData.length<=0){B=false}if(Fe.G("summaryImgId").value.length<=0&&Fe.G("summarySummary").value.length<=0){A=false}if(B&&A){Fe.G("insertButton").style.display="none"}else{if(B){Fe.G("insert2Span").style.display="none"}else{Fe.G("insert2Span").style.display=""}if(A){Fe.G("insert1Span").style.display="none"}else{Fe.G("insert1Span").style.display=""}Fe.G("insertButton").style.display="block"}}