1function ij_AddressFormTw(form,cityName,stateName,zipName,web_lang){this.arrCityTW=["å°åå¸","æ°åå¸","åºéå¸","æ¡åå¸","æ°ç«¹ç¸£","æ°ç«¹å¸","å°ä¸å¸","å®è縣","èæ ç¸£","é«éå¸","å½°å縣","åæç¸£","å義å¸","å義縣","é²æç¸£","å°åå¸","屿±ç¸£","å°æ±ç¸£","è±è®ç¸£","æ¾æ¹ç¸£","éé縣","飿±ç¸£"],this.arrCityEN=["Taipei City","New Taipei City","Keelung City","Taoyuan City","Hsinchu County","Hsinchu City","Taichung City","Yilan County","Miaoli County","Kaohsiung City","Changhua County","Nantou County","Chiayi City","Chiayi County","Yunlin County","Tainan City","Pingtung County","Taitung County","Hualien County","Penghu County","Kinmen County","Lienchiang County"],this.arrStateTW=new Array,this.arrStateEN=new Array,this.arrZip=new Array,this.arrStateTW[0]=["䏿£å","大åå","ä¸å±±å","æ¾å±±å","大å®å","è¬è¯å","信義å","士æå","åæå","å
§æ¹å","忏¯å","æå±±å"],this.arrStateEN[0]=["Zhongzheng Dist.","Datong Dist.","Zhongshan Dist.","Songshan Dist.","Da'an Dist.","Wanhua Dist.","Xinyi Dist.","Shilin Dist.","Beitou Dist.","Neihu Dist.","Nangang Dist.","Wenshan Dist."],this.arrZip[0]=["100","103","104","105","106","108","110","111","112","114","115","116"],this.arrStateTW[1]=["è¬éå","éå±±å","æ¿æ©å","æ±æ¢å","æ·±åå","ç³ç¢å","çè³å","平溪å","éæºªå","貢寮å","æ°åºå","åªæå","çä¾å","æ°¸åå","ä¸åå","ååå","ä¸å³½å","樹æå","鶯æå","ä¸éå","æ°èå","æ³°å±±å","æå£å","èæ´²å","äºè¡å","å
«éå","æ·¡æ°´å","ä¸èå","ç³éå"],this.arrStateEN[1]=["Wanli Dist.","Jinshan Dist.","Banqiao Dist.","Xizhi Dist.","Shenkeng Dist.","Shiding Dist.","Ruifang Dist.","Pingxi Dist.","Shuangxi Dist.","Gongliao Dist.","Xindian Dist.","Pinglin Dist.","Wulai Dist.","Yonghe Dist.","Zhonghe Dist.","Tucheng Dist.","Sanxia Dist.","Shulin Dist.","Yingge Dist.","Sanchong Dist.","Xinzhuang Dist.","Taishan Dist.","Linkou Dist.","Luzhou Dist.","Wugu Dist.","Bali Dist.","Tamsui Dist.","Sanzhi Dist.","Shimen Dist."],this.arrZip[1]=["207","208","220","221","222","223","224","226","227","228","231","232","233","234","235","236","237","238","239","241","242","243","244","247","248","249","251","252","253"],this.arrStateTW[2]=["仿å","信義å","䏿£å","ä¸å±±å","宿¨å","ææå","ä¸å µå"],this.arrStateEN[2]=["Ren'ai Dist.","Xinyi Dist.","Zhongzheng Dist.","Zhongshan Dist.","Anle Dist.","Nuannuan Dist.","Qidu Dist."],this.arrZip[2]=["200","201","202","203","204","205","206"],this.arrStateTW[3]=["ä¸å£¢å","å¹³é®å","龿½å","æ¥æ¢
å","æ°å±å","è§é³å","æ¡åå","é¾å±±å","å
«å¾·å","大溪å","復èå","大åå","è竹å"],this.arrStateEN[3]=["Zhongli Dist.","Pingzhen Dist.","Longtan Dist.","Yangmei Dist.","Xinwu Dist.","Guanyin Dist.","Taoyuan Dist.","Guishan Dist.","Bade Dist.","Daxi Dist.","Fuxing Dist.","Dayuan Dist.","Luzhu Dist."],this.arrZip[3]=["320","324","325","326","327","328","330","333","334","335","336","337","338"],this.arrStateTW[4]=["竹åå¸","æ¹å£é","æ°è±é","æ°åé®","é西é®","èæé","寶山é","竹æ±é®","äºå³°é","æ©«å±±é","å°ç³é","ååé","峨çé"],this.arrStateEN[4]=["Zhubei City","Hukou Township","Xinfeng Township","Xinpu Township","Guanxi Towns
1hip","Qionglin Township","Baoshan Township","Zhudong Township","Wufeng Township","Hengshan Township","Jianshi Township","Beipu Township","Emei Township"],this.arrZip[4]=["302","303","304","305","306","307","308","310","311","312","313","314","315"],this.arrStateTW[5]=["æ±å","åå","é¦å±±å"],this.arrStateEN[5]=["East Dist.","North Dist.","Xiangshan Dist."],this.arrZip[5]=["300","300","300"],this.arrStateTW[6]=["ä¸å","æ±å","åå","西å","åå","å屯å","西屯å","å屯å","太平å","大éå","é§å³°å","çæ¥å","è±åå","åéå","ç³å²¡å","æ±å¢å","åå¹³å","æ°ç¤¾å","æ½åå","大é
å","ç¥å²¡å","大èå","æ²é¹¿å","é¾äºå","梧棲å","æ¸
æ°´å","大ç²å","å¤åå","大å®å"],this.arrStateEN[6]=["Central Dist.","East Dist.","South Dist.","West Dist.","North Dist.","Beitun Dist.","Xitun Dist.","Nantun Dist.","Taiping Dist.","Dali Dist.","Wufeng Dist.","Wuri Dist.","Fengyuan Dist.","Houli Dist.","Shigang Dist.","Dongshi Dist.","Heping Dist.","Xinshe Dist.","Tanzi Dist.","Daya Dist.","Shengang Dist.","Dadu Dist.","Shalu Dist.","Longjing Dist.","Wuqi Dist.","Qingshui Dist.","Dajia Dist.","Waipu Dist.","Da'an Dist."],this.arrZip[6]=["400","401","402","403","404","406","407","408","411","412","413","414","420","421","422","423","424","426","427","428","429","432","433","434","435","436","437","438","439"],this.arrStateTW[7]=["å®èå¸","é åé®","ç¤æºªé","壯åé","å¡å±±é","ç¾
æ±é®","䏿é","大åé","äºçµé","å¬å±±é","èæ¾³é®","åæ¾³é","é£éèºåå¶¼"],this.arrStateEN[7]=["Yilan City","Toucheng Township","Jiaoxi Township","Zhuangwei Township","Yuanshan Township","Luodong Township","Sanxing Township","Datong Township","Wujie Township","Dongshan Township","Su'ao Township","Nan'ao Township","Diauyutai"],this.arrZip[7]=["260","261","262","263","264","265","266","267","268","269","270","272","290"],this.arrStateTW[8]=["竹åé®","é 份å¸","ä¸ç£é","ååºé","ç
æ½é","å¾é¾é®","ééé®","è裡é®","èæ å¸","é æ©é","é å±é","å
¬é¤¨é","大æ¹é","æ³°å®é","é
é¼é","ä¸ç¾©é","西æ¹é","åèé®"],this.arrStateEN[8]=["Zhunan Township","Toufen City","Sanwan Township","Nanzhuang Township","Shitan Township","Houlong Township","Tongxiao Township","Yuanli Township","Miaoli City","Zaoqiao Township","Touwu Township","Gongguan Township","Dahu Township","Tai'an Township","Tongluo Township","Sanyi Township","Xihu Township","Zhuolan Township"],this.arrZip[8]=["350","351","352","353","354","356","357","358","360","361","362","363","364","365","366","367","368","369"],this.arrStateTW[9]=["æ°èå","åéå","èé
å","é¹½åå","é¼å±±å","ææ´¥å","åé®å","䏿°å","æ¥ æ¢å","å°æ¸¯å","å·¦çå","仿¦å","大社å","岡山å","路竹å","é¿è®å","ç°å¯®å","çå·¢å","æ©é å","æ¢å®å","å½éå","æ°¸å®å","æ¹å
§å","鳳山å","大寮å","æåå","é³¥æ¾å","大樹å","æå±±å","ç¾æ¿å","å
é¾å","å
§éå","ææå","ç²ä»å","æ¡æºå","é£çªå¤å","èæå","èè£å","æ±æ²ç¾¤å³¶","åæ²ç¾¤å³¶"],this.arrStateEN[9]=["Xinxing Dist.","Qianjin Dist.","Lingya Dist.","Yancheng Dist.","Gushan Dist.","Qijin Dist.","Qianzhen Dist.","Sanmin Dist.","Nanzi Dist.","Xiaogang Dist.","Zuoying Dist.","Renwu Dist.","Dashe Dist.","Gangshan Dist.","Luzhu Dist.","Alian Dist.","Tianliao Dist.","Yanchao Dist.","Qiaotou Dist.","Ziguan Dist.","Mituo Dist.","Yong'an Dist.","Hunei Dist.","Fengshan Dist.","Daliao Dist.","Linyuan Dist.","Niaosong Dist.","Dashu Dist.","Qishan Dist.","Meinong Dist.","Liugui Dist.","Neimen Dist.","Shanlin Dist.","Jiaxian Dist.","Taoyuan Dist.","Namaxia Dist.","Maolin Dist.","Qieding Dist.","Dongsha Islands","Nansha Islands"],this.arrZip[9]=["800","801","802","803","804","805","806","807","811","812","813","814","815","820","821","822","823","824","825","826","827","828","829","830","831","832","833","840","842","843","844","845","846","847","848","849","851","852","817","819"],this.arrStateTW[10]=["å½°åå¸","è¬åé","è±å£é","ç§æ°´é","鹿港é®","ç¦èé","ç·è¥¿é","åç¾é®","伸港é","塿å¸","社é é","æ°¸éé","åå¿é","溪æ¹é®","大æé","åé¹½é","ç°ä¸é®","åæé®","ç°å°¾é","å¤é é","溪å·é","竹å¡é","äºæé®","大åé","è³èé","äºæ°´é"],this.arrStateEN[10]=["Changhua City","Fenyuan Township","Huatan Township","Xiu
1shui Township","Lukang Township","Fuxing Township","Xianxi Township","Hemei Township","Shengang Township","Yuanlin City","Shetou Township","Yongjing Township","Puxin Township","Xihu Township","Dacun Township","Puyan Township","Tianzhong Township","Beidou Township","Tianwei Township","Pitou Township","Xizhou Township","Zhutang Township","Erlin Township","Dacheng Township","Fangyuan Township","Ershui Township"],this.arrZip[10]=["500","502","503","504","505","506","507","508","509","510","511","512","513","514","515","516","520","521","522","523","524","525","526","527","528","530"],this.arrStateTW[11]=["åæå¸","ä¸å¯®é","è屯é®","åå§é","åéé®","仿é","åéé","ééé®","æ°´éé","éæ± é","信義é","竹山é®","鹿谷é"],this.arrStateEN[11]=["Nantou City","Zhongliao Township","Caotun Township","Guoxing Township","Puli Township","Ren'ai Township","Mingjian Township","Jiji Township","Shuili Township","Yuchi Township","Xinyi Township","Zhushan Township","Lugu Township"],this.arrZip[11]=["540","541","542","544","545","546","551","552","553","555","556","557","558"],this.arrStateTW[12]=["æ±å","西å"],this.arrStateEN[12]=["East Dist.","West Dist."],this.arrZip[12]=["600","600"],this.arrStateTW[13]=["çªè·¯é","æ¢
å±±é","竹å´é","é¿éå±±é","ä¸åé","大åé","æ°´ä¸é","鹿èé","太ä¿å¸","æ´åå¸","æ±ç³é","å
è
³é","æ°æ¸¯é","æ°éé","大æé®","溪å£é","義竹é","å¸è¢é®"],this.arrStateEN[13]=["Fanlu Township","Meishan Township","Zhuqi Township","Alishan Township","Zhongpu Township","Dapu Township","Shuishang Township","Lucao Township","Taibao City","Puzi City","Dongshi Township","Liujiao Township","Xingang Township","Minxiong Township","Dalin Township","Xikou Township","Yizhu Township","Budai Township"],this.arrZip[13]=["602","603","604","605","606","607","608","611","612","613","614","615","616","621","622","623","624","625"],this.arrStateTW[14]=["æåé®","大å¤é","èå°¾é®","å庫é®","è¤å¿ é","æ±å¢é","èºè¥¿é","å´èé","麥寮é","æå
å¸","æå
§é","å¤åé","è¿æ¡é","西èºé®","äºå´é","忏¯é®","æ°´æé","壿¹é","åæ¹é","å
é·é"],this.arrStateEN[14]=["Dounan Township","Dapi Township","Huwei Township","Tuku Township","Baozhong Township","Dongshi Township","Taixi Township","Lunbei Township","Mailiao Township","Douliu City","Linnei Township","Gukeng Township","Citong Township","Xiluo Township","Erlun Township","Beigang Township","Shuilin Township","Kouhu Township","Sihu Township","Yuanchang Township"],this.arrZip[14]=["630","631","632","633","634","635","636","637","638","640","643","646","647","648","649","651","652","653","654","655"],this.arrStateTW[15]=["ä¸è¥¿å","æ±å","åå","åå","å®å¹³å","å®åå","永康å","æ¸ä»å","æ°åå","å·¦é®å","çäºå","æ¥ è¥¿å","ååå","ä»å¾·å","éå»å","é¾å´å","å®ç°å","麻è±å","ä½³éå","西港å","ä¸è¡å","å°è»å","å¸ç²å","åéå","æ°çå","å¾å£å","ç½æ²³å","æ±å±±å","å
ç²å","ä¸çå","æ³çå","鹽水å","ååå","大å
§å","å±±ä¸å","æ°å¸å","å®å®å"],this.arrStateEN[15]=["West Central Dist.","East Dist.","South Dist.","North Dist.","Anping Dist.","Annan Dist.","Yongkang Dist.","Guiren Dist.","Xinhua Dist.","Zuozhen Dist.","Yujing Dist.","Nanxi Dist.","Nanhua Dist.","Rende Dist.","Guanmiao Dist.","Longqi Dist.","Guantian Dist.","Madou Dist.","Jiali Dist.","Xigang Dist.","Qigu Dist.","Jiangjun Dist.","Xuejia Dist.","Beimen Dist.","Xinying Dist.","Houbi Dist.","Baihe Dist.","Dongshan Dist.","Liujia Dist.","Xiaying Dist.","Liuying Dist.","Yanshui Dist.","Shanhua Dist.","Danei Dist.","Shanshang Dist.","Xinshi Dist.","Anding Dist."],this.arrZip[15]=["700","701","702","704","708","709","710","711","712","713","714","715","716","717","718","719","720","721","722","723","724","725","726","727","730","731","732","733","734","735","736","737","741","742","743","744","745"],this.arrStateTW[16]=["屿±å¸","ä¸å°éé","é§èºé","çªå®¶é","ä¹å¦é","鿏¯é","髿¨¹é","é¹½
1åé","é·æ²»é","éºæ´é","竹ç°é","å
§åé","è¬ä¸¹é","æ½®å·é®","æ³°æ¦é","ä¾ç¾©é","è¬å·é","å´é é","æ°å¤é","åå·é","æéé","æ±æ¸¯é®","ççé","ä½³å¬é","æ°åé","æå¯®é","æå±±é","æ¥æ¥é","ç
åé","è»åé","ç¡ä¸¹é","ææ¥é®","滿å·é"],this.arrStateEN[16]=["Pingtung City","Sandimen Township","Wutai Township","Majia Township","Jiuru Township","Ligang Township","Gaoshu Township","Yanpu Township","Changzhi Township","Linluo Township","Zhutian Township","Neipu Township","Wandan Township","Chaozhou Township","Taiwu Township","Laiyi Township","Wanluan Township","Kanding Township","Xinpi Township","Nanzhou Township","Linbian Township","Donggang Township","Liuqiu Township","Jiadong Township","Xinyuan Township","Fangliao Township","Fangshan Township","Chunri Township","Shizi Township","Checheng Township","Mudan Township","Hengchun Township","Manzhou Township"],this.arrZip[16]=["900","901","902","903","904","905","906","907","908","909","911","912","913","920","921","922","923","924","925","926","927","928","929","931","932","940","941","942","943","944","945","946","947"],this.arrStateTW[17]=["å°æ±å¸","ç¶ å³¶é","èå¶¼é","å»¶å¹³é","ååé","鹿éé","éå±±é®","海端é","æ± ä¸é","æ±æ²³é","æåé®","é·æ¿±é","太麻éé","éå³°é","大æ¦é","éä»é"],this.arrStateEN[17]=["Taitung City","Ludao Township","Lanyu Township","Yanping Township","Beinan Township","Luye Township","Guanshan Township","Haiduan Township","Chishang Township","Donghe Township","Chenggong Township","Changbin Township","Taimali Township","Jinfeng Township","Dawu Township","Daren Township"],this.arrZip[17]=["950","951","952","953","954","955","956","957","958","959","961","962","963","964","965","966"],this.arrStateTW[18]=["è±è®å¸","æ°åé","ç§æé","åå®é","壽è±é","é³³æé®","å
復é","è±æ¿±é","çç©é","è¬æ¦®é","çéé®","åæºªé","å¯éé"],this.arrStateEN[18]=["Hualien City","Xincheng Township","Xiulin Township","Jiâan Township","Shoufeng Township","Fenglin Township","Guangfu Township","Fengbin Township","Ruisui Township","Wanrong Township","Yuli Township","Zhuoxi Towns
1hip","Fuli Township"],this.arrZip[18]=["970","971","972","973","974","975","976","977","978","979","981","982","983"],this.arrStateTW[19]=["馬å
¬å¸","西嶼é","æå®é","ä¸ç¾é","ç½æ²é","æ¹è¥¿é"],this.arrStateEN[19]=["Magong City","Xiyu Township","Wang'an Township","Qimei Township","Baisha Township","Huxi Township"],this.arrZip[19]=["880","881","882","883","884","885"],this.arrStateTW[20]=["éæ²é®","éæ¹é®","é寧é","éåé®","çå¶¼é","çåµé"],this.arrStateEN[20]=["Jinsha Township","Jinhu Township","Jinning Township","Jincheng Township","Lieyu Township","Wuqiu Township"],this.arrZip[20]=["890","891","892","893","894","896"],this.arrStateTW[21]=["åç«¿é","åç«¿é","èå
é","æ±å¼é"],this.arrStateEN[21]=["Nangan Township","Beigan Township","Juguang Township","Dongyin Township"],this.arrZip[21]=["209","210","211","212"],this.web_lang=(web_lang!=''&&typeof(web_lang)!='undefined')?web_lang:'zh-tw',this.cityName=cityName,this.stateName=stateName,this.zipName=zipName,this.chooseName=(this.web_lang=='zh-tw'||this.web_lang=='zh-cn')?"è«é¸æ":(this.web_lang=='ja')?"é¸ãã§ãã ãã":(this.web_lang=='ko')?"ì íí´ì£¼ì¸ì":"Please Choose",this.objForm=new FormControl(form),this.cityEl=eval("this.objForm.form."+cityName),this.stateEl=eval("this.objForm.form."+stateName),this.init()}function ij_Calendar(e,t,i,a){if(this.objId=e,this.containerId=t,this.dispalyFun=i,this.inputId=a,this.cLang="zh-tw",this.cDate=new Date,this.maxDate=new Date(2035,11,31),this.oDomContainer=document.getElementById(this.containerId),this.cType="m",this.selectType="one",this.selectedDates=new Array,this.selectedStartDate=null,this.selectedEndDate=null,this.cancelDateLET=null,this.cancelDateGET=null,this.cancelWeekend=null,this.tplHtml=null,this.editUri=null,this.editFun=null,this.inputId){if(this.oDomInput=document.getElementById(this.inputId),null==this.oDomInput)return!1;var r=ij_getXY(this.oDomInput),n=document.createElement("div");n.id=this.containerId,n.style.width="150px",n.style.left=r[0]+"px",n.style.top=r[1]+this.oDomInput.offsetHeight+"px",n.style.position="absolute",n.style.display="none",n.style.zIndex="100",document.body.appendChild(n),this.oDomContainer=document.getElementById(this.containerId),this.oDomInput.value?this.cDate=new Date(this.oDomInput.value):this.cDate=new Date,this.selectedDates[0]=this.cDate}this.joinObjId=null,this.joinObjDispaly=null,this.joinType=null,this.itemObjId=null,this.init(this.cType,this.cDate)}function ij_CalendarItem(e,t){this.objId=e,this.CalendarObjId=t,this.divHeight=15,this.rowDays=7,this.createDivs=new Array,this.LayerIdx=new Object,this.moreDates=new Array,this.rssItems=new Array,this.rssItems2Calendar=new Array,this.showItems=new Array,this.editUri=null}function ij_isEmail(e){return!!/^((([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})))(,(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})))*$/.test(e)}function ij_isAccount(e){return!!/^[A-Za-z0-9-_]+$/.test(e)}function ij_isEnglish(e){return!!/^[A-Za-z0-9 .,()-_?!]+$/.test(e)}function ij_isInteger(e){return!!/^-?\d+$/.test(e)}function ij_isUTCode(e){var t=new Array(1,2,1,2,1,2,4,1),i=0,a=0;if(""==e)return!1;if(e.match(/^\d{8}$/)){for(var r=0;r<t.length;r++)i=e.charAt(r)*t[r],a+=Math.floor(i/10)+i%10;return a%5==0||a%5==4&&7==e.charAt(6)}return!1}function ij_isInvForTw(e){if(10!=e.length)return!1;var t=e.substr(0,2);if(!/^[A-Z]+$/.test(t))return!1;var i=e.substr(2,8);return!!/^[0-9]+$/.test(i)}function ij_isIDForTw(e){var t=new Array(1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3),i=new Array(0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2,3,4,5),a=new Array(9,8,7,6,5,4,3,2,1,1);if("A123456789"==e)return!1;if(10!=e.length)return!1;if(-1==(n="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.charAt(0))))return!1;for(var r=t[n]+9*i[n],n=1;n<10;n++){var s=parseInt(e.charAt(n));if(isNaN(s))return!1;r+=s*a[n]}return r%10==0}function ij_checkSubName(fileName,subNameList){var re=eval("/.("+subNameList+")$/i");return re.test(fileName)}function DescDiv(e){this.id=e,this.alpha=100,this.backgroundColor="FFECEC",this.borderColor="CC0033",this.width=300,this.height=0,this._x=0,this._y=0,this.oDescDiv=null,this.innerHTML=null,this.className="meatTxt",this.isMousePos=!0}function FormControl(form,_document){_document=_document||document,this._document="object"==typeof _document?_document:eval(_document),this.form="object"==typeof form?form:eval("this._document."+form)}function ij_Gmap(e){this.divId=e,this.mapCenter=new Array(25.046103,121.544495),this.mapZoom=13,this.ijMap,this.mapCenterPoint,this.getPoint,this.flyMarker,this.flyIcon=this.addIcon({image:IJ.baseTplUri+"ian_map_icon.png",iconAnchor:[-3,13],infoWindowAnchor:[-3,12],iconSize:[70,26],shadow:IJ.baseTplUri+"ian_map_icon_shadow.png",shadowSize:[70,26],maxHeight:20}),this.addMarkers=new Array,this.addLatLngs=new Array,this.addPolyline}var MY_MAP,G_CHINA_MAP,ij_mousePos;function ij_getWindowWH(){var e,t;return window.innerWidth?(e=window.innerWidth,t=window.innerHeight):window.ActiveXObject&&(e=document.body.clientWidth,t=document.body.clientHeight),[e,t]}function ij_getXY(e){try{box=e.getBoundingClientRect();var t=document,i=Math.max(t.documentElement.scrollTop,t.body.scrollTop),a=Math.max(t.documentElement.scrollLeft,t.body.scrollLeft),r=box.left+a,n=box.top+i;return[r,n]}catch(t){if(null==e)return[0,0];if(r=e.offsetLeft,n=e.offsetTop,parentNode=e.offsetParent,parentNode!=e)for(;parentNode;)r+=parentNode.offsetLeft,n+=parentNode.offsetTop,parentNode=parentNode.offsetParent;return[r,n]}}function ij_mouseMove(e){e=e||window.event,ij_mousePos=ij_mouseCoords(e)}function ij_mouseCoords(e){return e.pageX||e.pageY?{x:e.pageX,y:e.pageY}:{x:e.clientX+document.body.scrollLeft-document.body.clientLeft,y:e.clientY+document.body.scrollTop-document.body.clientTop}}ij_AddressFormTw.prototype.init=function(e,t){this.arrCity=this.arrCityTW;this.arrState=this.arrStateTW;if(typeof e!="undefined"||typeof t!="undefined"){switch(this.web_lang){case"en-us":this.cityIdx=this.arrCityTW.indexOf(e);if(this.cityIdx>0){e=this.arrCityEN[this.cityIdx];if(this.arrStateTW[this.cityIdx].indexOf(t)>0)t=this.arrStateEN[this.cityIdx][this.arrStateTW[this.cityIdx].indexOf(t)]}this.arrCity=this.arrCityEN;this.arrState=this.arrStateEN;break;default:this.arrCity=this.arrCityTW;this.arrState=this.arrStateTW;break}}if(e=this.tw5CityReplace(e,t,"city"),t=this.tw5CityReplace(e,t,"state"),ij_isIE()){this.objForm.removeOptionAll(this.cityName),this.objForm.appendOption(this.cityName,"",this.chooseName);var i=-1,a=-1;if(e)for(var r=0;r<this.arrCity.length;r++)this.objForm.appendOption2(this.cityName,this.arrCity[r],this.arrCity[r],e),e==this.arrCity[r]&&(i=r);else for(r=0;r<this.arrCity.length;r++)this.objForm.appendOption(this.cityName,this.arrCity[r],this.arrCity[r]);this.objForm.removeOptionAll(this.stateName);var n,s=this.arrState[i];if(this.objForm.appendOption(this.stateName,"",this.chooseName),s)for(this.stateIdx=s.getIndex(t),r=0;r<s.length;r++)this.objForm.appendOption2(this.stateName,s[r],s[r],t),t==s[r]&&(a=r);this.arrZip[i]&&((n=this.arrZip[i][a])?this.objForm.setValue(this.zipName,n):this.objForm.setValue(this.zipName,""))}else{for(this.objForm.removeOptionAll(this.cityName),this.objForm.appendOption(this.cityName,"",this.chooseName),r=0;r<this.arrCity.length;r++)this.objForm.appendOption(this.cityName,this.arrCity[r],this.arrCity[r]);e&&this.objForm.setSelected(this.cityName,e,"value"),this.selectCity(),t&&this.objForm.setSelected(this.stateName,t,"value"),this.selectState()}},ij_AddressFormTw.prototype.selectCity=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this.objForm.removeOptionAll(this.stateName),this.objForm.setValue(this.zipName,""),void 0!==this.cityEl){var i=this.cityEl.selectedIndex-1;ij_isIE()&&0==this.cityEl.selectedIndex&&this.cityIdx&&(i=this.cityIdx);var a=this.arrState[i];if(this.objForm.appendOption(this.stateName,"",this.chooseName),a){t&&this.objForm.appendOption(this.stateName,e,t);for(var r=0;r<a.length;r++)this.objForm.appendOption(this.stateName,a[r],a[r])}}},ij_AddressFormTw.prototype.selectState=function(e){var t,i,a;void 0===e&&(e=0),void 0!==this.cityEl&&(t=this.cityEl.selectedIndex-1,ij_isIE()&&0==this.cityEl.selectedIndex&&this.cityIdx&&(t=this.cityIdx),i=this.stateEl.selectedIndex-1-e,ij_isIE()&&0==this.stateEl.selectedIndex&&this.stateIdx&&(i=this.stateIdx),this.arrZip[t]&&((a=-1==i&&0<e?this.arrZip[t]:this.arrZip[t][i])?this.objForm.setValue(this.zipName,a):this.objForm.setValue(this.zipName,"")))},ij_AddressFormTw.prototype.tw5CityReplace=function(e,t,i){if("city"==i)return e?"å°å縣"==e||"èºå縣"==e||"å縣"==e?"æ°åå¸":"å°ä¸ç¸£"==e||"èºä¸ç¸£"==e||"ä¸ç¸£"==e?"å°ä¸å¸":"å°å縣"==e||"èºå縣"==e||"å縣"==e?"å°åå¸":"é«
1é縣"==e||"é«ç¸£"==e?"é«éå¸":e:"";if("state"==i){if(!t)return"";if("æ°åå¸"==e||"å°å縣"==e){if("è¬éé"==t)return"è¬éå";if("éå±±é"==t)return"éå±±å";if("æ¿æ©å¸"==t)return"æ¿æ©å";if("æ±æ¢å¸"==t)return"æ±æ¢å";if("æ·±åé"==t)return"æ·±åå";if("ç³ç¢é"==t)return"ç³ç¢å";if("çè³é®"==t)return"çè³å";if("平溪é"==t)return"平溪å";if("éæºªé"==t)return"éæºªå";if("貢寮é"==t)return"貢寮å";if("æ°åºå¸"==t)return"æ°åºå";if("åªæé"==t)return"åªæå";if("çä¾é"==t)return"çä¾å";if("æ°¸åå¸"==t)return"æ°¸åå";if("ä¸åå¸"==t)return"ä¸åå";if("ååå¸"==t)return"ååå";if("ä¸å³½é®"==t)return"ä¸å³½å";if("樹æå¸"==t)return"樹æå";if("鶯æé®"==t)return"鶯æå";if("ä¸éå¸"==t)return"ä¸éå";if("æ°èå¸"==t)return"æ°èå";if("æ³°å±±é"==t)return"æ³°å±±å";if("æå£é"==t)return"æå£å";if("èæ´²å¸"==t)return"èæ´²å";if("äºè¡é"==t)return"äºè¡å";if("å
«éé"==t)return"å
«éå";if("æ·¡æ°´é®"==t)return"æ·¡æ°´å";if("ä¸èé"==t)return"ä¸èå";if("ç³éé"==t)return"ç³éå"}else if("å°ä¸å¸"==e||"å°ä¸ç¸£"==e){if("太平å¸"==t)return"太平å";if("大éå¸"==t)return"大éå";if("é§å³°é"==t)return"é§å³°å";if("çæ¥é"==t)return"çæ¥å";if("è±åå¸"==t)return"è±åå";if("åéé"==t)return"åéå";if("ç³å²¡é"==t)return"ç³å²¡å";if("æ±å¢é®"==t)return"æ±å¢å";if("åå¹³é"==t)return"åå¹³å";if("æ°ç¤¾é"==t)return"æ°ç¤¾å";if("æ½åé"==t)return"æ½åå";if("大é
é"==t)return"大é
å";if("ç¥å²¡é"==t)return"ç¥å²¡å";if("大èé"==t)return"大èå";if("æ²é¹¿é®"==t)return"æ²é¹¿å";if("é¾äºé"==t)return"é¾äºå";if("梧棲é®"==t)return"梧棲å";if("æ¸
æ°´é®"==t)return"æ¸
æ°´å";if("大ç²é®"==t)return"大ç²å";if("å¤åé"==t)return"å¤åå";if("大å®é"==t)return"大å®å"}else if("å°åå¸"==e||"å°å縣"==e){if("ä¸å"==t)return"ä¸è¥¿å";if("西å"==t)return"ä¸è¥¿å";if("永康å¸"==t)return"永康å";if("æ¸ä»é"==t)return"æ¸ä»å";if("æ°åé®"==t)return"æ°åå";if("å·¦é®é"==t)return"å·¦é®å";if("çäºé"==t)return"çäºå";if("æ¥ è¥¿é"==t)return"æ¥ è¥¿å";if("ååé"==t)return"ååå";if("ä»å¾·é"==t)return"ä»å¾·å";if("éå»é"==t)return"éå»å";if("é¾å´é"==t)return"é¾å´å";if("å®ç°é"==t)return"å®ç°å";if("麻è±é®"==t)return"麻è±å";if("ä½³éé®"==t)return"ä½³éå";if("西港é"==t)return"西港å";if("ä¸è¡é"==t)return"ä¸è¡å";if("å°è»é"==t)return"å°è»å";if("å¸ç²é®"==t)return"å¸ç²å";if("åéé"==t)return"åéå";if("æ°çå¸"==t)return"æ°çå";if("å¾å£é"==t)return"å¾å£å";if("ç½æ²³é®"==t)return"ç½æ²³å";if("æ±å±±é"==t)return"æ±å±±å";if("å
ç²é"==t)return"å
ç²å";if("ä¸çé"==t)return"ä¸çå";if("æ³çé"==t)return"æ³çå";if("鹽水é®"==t)return"鹽水å";if("ååé®"==t)return"ååå";if("大å
§é"==t)return"大å
§å";if("å±±ä¸é"==t)return"å±±ä¸å";if("æ°å¸é"==t)return"æ°å¸å";if("å®å®é"==t)return"å®å®å"}else if("é«éå¸"==e||"é«é縣"==e){if("仿¦é"==t)return"仿¦å";if("大社é"==t)return"大社å";if("岡山é®"==t)return"岡山å";if("路竹é"==t)return"路竹å";if("é¿è®é"==t)return"é¿è®å";if("ç°å¯®é"==t)return"ç°å¯®å";if("çå·¢é"==t)return"çå·¢å";if("æ©é é"==t)return"æ©é å";if("æ¢å®é"==t)return"æ¢å®å";if("å½éé"==t)return"å½éå";if("æ°¸å®é"==t)return"æ°¸å®å";if("æ¹å
§é"==t)return"æ¹å
§å";if("鳳山å¸"==t)return"鳳山å";if("大寮é"==t)return"大寮å";if("æåé"==t)return"æåå";if("é³¥æ¾é"==t)return"é³¥æ¾å";if("大樹é"==t)return"大樹å";if("æå±±é®"==t)return"æå±±å";if("ç¾æ¿é®"==t)return"ç¾æ¿å";if("å
é¾é"==t)return"å
é¾å";if("å
§éé"==t)return"å
§éå";if("ææé"==t)return"ææå";if("ç²ä»é"==t)return"ç²ä»å";if("æ¡æºé"==t)return"æ¡æºå";if("䏿°é"==t)return"䏿°å";if("èæé"==t)return"èæå";if("èè£é"==t)return"èè£å"}return t}},Array.prototype.getIndex=function(e){for(var t=0;t<this.length;t++)if(this[t]==e)return t},Array.prototype.duplicate=function(){for(var e=0;e<this.length;e++)if(0<e)for(var t=this.slice(0,e),i=0;i<t.length;i++)if(this[e]==t[i])return!0;return!1},ij_Calendar.prototype.init=function(cType,cDate){var cMonthFirstDate,cStartDate,cMonthLastDate,cDayNum,cRowNum,cStartDate,cDayNum,cStartDate,cDayNum;cType=cType||this.cType,cDate?cDate.constructor!=Date&&(cDate=new Date(cDate)):cDate=this.cDate,cDate.setHours(0,0,0,0),cDate.getTime()>this.maxDate.getTime()&&(cDate=this.maxDate),"m"==cType?(cMonthFirstDate=cDate.getMonthFirstDate(),cStartDate=cMonthFirstDate.getWeekDate(0),cMonthLastDate=cDate.getMonthLastDate(),cDayNum=cMonthFirstDate.getMonthDays()+cMonthFirstDate.getDay()+(6-cMonthLastDate.getDay()),cRowNum=Math.ceil(cDayNum/7)):"w"==cType?(cStartDate=cDate.getWeekDate(0),cDayNum=7):"d"==cType&&(cStartDate=cDate,cDayNum=1);var cEndDate=cStartDate.getDiffDate("d",cDayNum-1),cTitle,cTitle;cTitle="m"==cType?cMonthFirstDate.getMonth()+1+", "+cMonthFirstDate.getFullYear():cStartDate.getClosedIntervalTitle(cEndDate),this.cType=cType,this.cTitle=cTitle,this.cDayNum=cDayNum,this.cRowNum=cRowNum,this.cStartDate=cStartDate,this.cDate=cDate,this.cStartDate=cStartDate,this.cEndDate=cEndDate,this.cUpDate=cStartDate.getDiffDate("d",-1),this.cDownDate=cEndDate.getDiffDate("d",1),this.setJoinObj(),eval("this."+this.dispalyFun+"(this.tplHtml)")},ij_Calendar.prototype.displayShow=function(){"none"==this.oDomContainer.style.display?ij_showDiv(this.containerId,!0):ij_showDiv(this.containerId,!1)},ij_Calendar.prototype.setSelectedDates=function(sDate,mouseEvent){if(sDate.constructor!=Date&&(sDate=new Date(sDate)),sDate.setHours(0,0,0,0),"one"==this.selectType)this.selectedDates.pop(),this.selectedDates.push(sDate),eval("this."+this.dispalyFun+"(this.tplHtml)"),this.setJoinObj(this.joinType);else if("multi"==this.selectType){for(var _idx=null,i=0;i<this.selectedDates.length;i++)sDate.getTime()==this.selectedDates[i].getTime()&&(_idx=i);null!=_idx?this.selectedDates.splice(_idx,1):this.selectedDates=this.selectedDates.concat(sDate),eval("this."+this.dispalyFun+"(this.tplHtml)"),this.setJoinObj(this.joinType)}else{var _StartDate,_EndDate;"schlep"==this.selectType&&("move"!=mouseEvent&&(this.mouseEvent=mouseEvent),this.mouseEvent)&&("down"==this.mouseEvent?("down"==mouseEvent&&(this.selectedStartDate=sDate),this.selectedEndDate=sDate):"up"==this.mouseEvent&&(_StartDate=this.selectedStartDate,_EndDate=this.selectedEndDate,this.selectedStartDate.getTime()>this.selectedEndDate.getTime()&&(this.selectedStartDate=_EndDate,this.selectedEndDate=_StartDate),this.mouseEvent=null,this.setJoinObj(this.joinType)),eval("this."+this.dispalyFun+"(this.tplHtml)"))}this.oDomInput&&(this.oDomInput.value=this.selectedDates[0].dateFormat("%Y/%m/%d"),this.displayShow())},ij_Calendar.prototype.clearDate=function(){this.oDomInput&&(this.oDomInput.value="",this.displayShow())},ij_Calendar.prototype.setJoinObj=function(type){if(this.joinObjId){var joinObj=eval(this.joinObjId);switch(this.joinType){case"Start2End":joinObj.cancelDateLET=this.selectedDates[0],joinObj.cancelDateGET=null,eval(this.joinObjId+"."+this.joinObjDispaly+"(this.tplHtml)");break;case"End2Start":joinObj.cancelDateGET=this.selectedDates[0],joinObj.cancelDateLET=null,eval(this.joinObjId+"."+this.joinObjDispaly+"(this.tplHtml)");break;case"B2S":joinObj.init(joinObj.cType,this.cDate);break;case"S2B":"S2B"==type&&("schlep"==this.selectType?joinObj.init(joinObj.cType,this.selectedStartDate):joinObj.init(joinObj.cType,this.selectedDates[0]))}}},ij_Calendar.prototype.dispaly_s=function(e,t){if(e){(t=t||this).tplHtml=e;var i=t.oDomContainer;i.innerHTML=e;var a=new Date;a.setHours(0,0,0,0);var r=i.ownerDocument.getElementById("ij_calendar_s_upLink");r.id=t.objId+"_upLink",r.setAttribute("onmouseover","ij_styleCursorHand(this)"),r.setAttribute("onclick",t.objId+'.init("m", '+t.cUpDate.getTime()+")");var n=i.ownerDocument.getElementById("ij_calendar_s_downLink");n.id=t.objId+"_downLink",n.setAttribute("onmouseover","ij_styleCursorHand(this)"),n.setAttribute("onclick",t.objId+'.init("m", '+t.cDownDate.getTime()+")");var s=i.ownerDocument.getElementById("ij_calendar_s_dateTitle");s.id=t.objId+"_dateTitle",select_y='<select name="select_y" id="select_y" style="font-size: 12px; background-color: #eeeeee;" onchange="'+t.objId+".init('m', this.options[this.selectedIndex].value + '/"+(t.cDate.getMonth()+1)+"/01')\" >";
1for(var o=1911;o<=t.maxDate.getFullYear();o++)t.cDate.getFullYear()==o?select_y+='<option value="'+o+'" selected>'+o+"</option>":select_y+='<option value="'+o+'">'+o+"</option>";select_y+="</select>",s.innerHTML=t.cDate.getMonth()+1+", "+select_y;var l=i.ownerDocument.getElementById("ij_calendar_s_WeekTr");l.id=t.objId+"_WeekTr";for(var d=0;d<7;d++)(C=document.createElement("td")).innerHTML=getWeekString(t.cLang,d),l.appendChild(C);var c=i.ownerDocument.getElementById("ij_calendar_s_DayTable");c.id=t.objId+"_DayTable";for(var h=i.ownerDocument.getElementById("ij_calendar_s_DayTr"),m=i.ownerDocument.getElementById("ij_calendar_s_Sunday"),u=i.ownerDocument.getElementById("ij_calendar_s_Saturday"),p=i.ownerDocument.getElementById("ij_calendar_s_Today"),_=i.ownerDocument.getElementById("ij_calendar_s_Day"),y=i.ownerDocument.getElementById("ij_calendar_s_SelectDay"),f=i.ownerDocument.getElementById("ij_calendar_s_MouseoverDay"),g=i.ownerDocument.getElementById("ij_calendar_s_CancelDay"),b=0;b<t.cRowNum;b++){var j=document.createElement("tr");for(j.align="center",j.className=h.className,d=0;d<7;d++){var D=7*b+d,v=t.cStartDate.getDiffDate("d",D),w=v.getTime()==a.getTime()?p.className:0==v.getDay()?m.className:6==v.getDay()?u.className:_.className,T=t.cDate.getMonth()==v.getMonth()?'<font color="#000099">'+v.getDate()+"</font>":v.getDate();if("schlep"==t.selectType)t.selectedStartDate&&t.selectedEndDate&&(t.selectedStartDate.getTime()<=v.getTime()&&t.selectedEndDate.getTime()>=v.getTime()||t.selectedStartDate.getTime()>=v.getTime()&&t.selectedEndDate.getTime()<=v.getTime())&&(w=y.className);else for(var I=0;I<t.selectedDates.length;I++)v.getTime()==t.selectedDates[I].getTime()&&(w=y.className);var C,M=!1;switch(null!=t.cancelDateLET&&v.getTime()<t.cancelDateLET.getTime()&&(M=!0),null!=t.cancelDateGET&&v.getTime()>t.cancelDateGET.getTime()&&(M=!0),(C=document.createElement("td")).id=t.objId+"_d"+v.getTime(),C.innerHTML=T,!0){case M:case t.cancelWeekend&&(0==d||6==d):C.className=g.className;break;default:C.className=w,C.setAttribute("onmouseover",'ij_styleCursorHand(this);this.className="'+f.className+'";'),C.setAttribute("onmouseout",'this.className="'+w+'";'),"schlep"==t.selectType?(C.setAttribute("onmousedown",t.objId+".setSelectedDates("+v.getTime()+', "down")'),C.setAttribute("onmousemove",t.objId+".setSelectedDates("+v.getTime()+', "move")'),C.setAttribute("onmouseup",t.objId+".setSelectedDates("+v.getTime()+', "up")')):null!=t.editUri?C.setAttribute("onclick","window.location.href='"+t.editUri+v.dateFormat("%Y/%m/%d")+"';"):null!=t.editFun?C.setAttribute("onclick",t.objId+".editFun('"+v.dateFormat("%Y/%m/%d")+"')"):C.setAttribute("onclick",t.objId+".setSelectedDates("+v.getTime()+")")}j.appendChild(C)}c.appendChild(j)}i.innerHTML=i.innerHTML}else ij_loadCss(IJ.baseTplUri+"ij_calendar_s.css"),ij_dojoRequest({uri:IJ.baseTplUri+"ij_calendar_s.htm",method:"GET",callFun:this.dispaly_s,callObj:this})},ij_Calendar.prototype.dispaly_b=function(html,_this){if(html){_this=_this||this,_this.tplHtml=html;var _oDom=_this.oDomContainer;_oDom.innerHTML=html;var objToday=new Date;objToday.setHours(0,0,0,0);var a_upLink=_oDom.ownerDocument.getElementById("ij_calendar_b_upLink");a_upLink.id=_this.objId+"_upLink",a_upLink.setAttribute("onmouseover","ij_styleCursorHand(this)"),a_upLink.setAttribute("onclick",_this.objId+'.init( "'+_this.cType+'", '+_this.cUpDate.getTime()+" )");var a_downLink=_oDom.ownerDocument.getElementById("ij_calendar_b_downLink");a_downLink.id=_this.objId+"_downLink",a_downLink.setAttribute("onmouseover","ij_styleCursorHand(this)"),a_downLink.setAttribute("onclick",_this.objId+'.init( "'+_this.cType+'", '+_this.cDownDate.getTime()+" )");var a_toDay=_oDom.ownerDocument.getElementById("ij_calendar_b_toDay");a_toDay.id=_this.objId+"_toDay",a_toDay.setAttribute("onmouseover","ij_styleCursorHand(this)"),a_toDay.setAttribute("onclick",_this.objId+'.init( "'+_this.cType+'", '+(new Date).getTime()+" )");var t_dateTitle=_oDom.ownerDocument.getElementById("ij_calendar_b_dateTitle");t_dateTitle.id=_this.objId+"_dateTitle",t_dateTitle.innerHTML=_this.cTitle;var table_Day=_oDom.ownerDocument.getElementById("ij_calendar_b_DayTable");table_Day.id=_this.objId+"_DayTable";var tr_WeekTr=_oDom.ownerDocument.getElementById("ij_calendar_b_WeekTr"),tr_Day=_oDom.ownerDocument.getElementById("ij_calendar_b_DayTr"),td_Sunday=_oDom.ownerDocument.getElementById("ij_calendar_b_Sunday"),td_S
1aturday=_oDom.ownerDocument.getElementById("ij_calendar_b_Saturday"),td_Today=_oDom.ownerDocument.getElementById("ij_calendar_b_Today"),td_Day=_oDom.ownerDocument.getElementById("ij_calendar_b_Day"),td_MouseoverDay=_oDom.ownerDocument.getElementById("ij_calendar_b_MouseoverDay");if(0<_this.cRowNum){for(var j=0;j<7;j++){var new_td=document.createElement("td");new_td.innerHTML=getWeekString(_this.cLang,j),tr_WeekTr.appendChild(new_td)}for(var i=0;i<_this.cRowNum;i++){var new_tr=document.createElement("tr");new_tr.className=tr_Day.className,new_tr.setAttribute("valign","top");var tr_height=100;new_tr.setAttribute("height",tr_height);for(var j=0;j<7;j++){var d=7*i+j,objDay=_this.cStartDate.getDiffDate("d",d),_className,_className,_className,_className,_dayText,_dayText;_className=objDay.getTime()==objToday.getTime()?td_Today.className:0==objDay.getDay()?td_Sunday.className:6==objDay.getDay()?td_Saturday.className:td_Day.className,_dayText=_this.cDate.getMonth()==objDay.getMonth()?'<font color="#000099"><b>'+objDay.getDate()+"</b></font>":"<b>"+objDay.getDate()+"</b>";var new_td=document.createElement("td");new_td.id=_this.objId+"_d"+objDay.getTime(),new_td.className=_className,new_td.innerHTML=_dayText,new_td.width=table_Day.offsetWidth/7+"px",new_td.setAttribute("onmouseover",'ij_styleCursorHand(this);this.className="'+td_MouseoverDay.className+'";'),new_td.setAttribute("onmouseout",'this.className="'+_className+'";'),null!=_this.editUri&&new_td.setAttribute("onclick","window.location.href='"+_this.editUri+objDay.dateFormat("%Y/%m/%d")+"';"),new_tr.appendChild(new_td)}table_Day.appendChild(new_tr)}}_oDom.innerHTML=_oDom.innerHTML,_this.itemObjId&&eval(_this.itemObjId+".dispaly()")}else ij_loadCss(IJ.baseTplUri+"ij_calendar_b.css"),ij_dojoRequest({uri:IJ.baseTplUri+"ij_calendar_b.htm",method:"GET",callFun:this.dispaly_b,callObj:this})},ij_CalendarItem.prototype.init=function(){ij_loadCss(IJ.baseTplUri+"ij_calendar_item.css"),this.CalendarObj=eval(this.CalendarObjId),this.getObjItems2Calendar(),this.dispaly()},ij_CalendarItem.prototype.dispaly=function(){this.removeItems(),this.analyzeItems();for(var e=0;e<this.showItems.length;e++)this.CalendarObj.cStartDate.getTime()<=this.showItems[e].endDate.getTime()&&this.CalendarObj.cEndDate.getTime()>=this.showItems[e].startDate.getTime()&&this.items(this.showItems[e],"ij_calendar_item_"+e);this.dispalyMoreDates()},ij_CalendarItem.prototype.items=function(e,t){var i=e.startDate,a=e.endDate,r=i.getDateDiff("d",a)+1,n=this.setLayerIdx(i,r);if(null!=n){var s=document.createElement("div");s.style.position="absolute",s.style.left="0px",s.style.top="0px",s.id=t,document.body.appendChild(s),this.createDivs=this.createDivs.concat(s);for(var o=Math.ceil((r+i.getDay())/this.rowDays),l=0;l<o;l++){var d=this.rowDays-i.getDay();r<d&&(d=r);var c=[" |","| "];0<l?c[0]=" <":l<o-1&&(c[1]="> ");var h=this.dispalyItem(i,d,e,n,c,t);h&&s.appendChild(h),i=i.getDiffDate("d",d),r-=d}}},ij_CalendarItem.prototype.dispalyItem=function(e,t,i,a,r,n){var s="d"+e.getTime(),o=document.getElementById(this.CalendarObjId+"_"+s);if(o){for(var l=0,d=0;d<t;d++)l=l+document.getElementById(this.CalendarObjId+"_d"+e.getDiffDate("d",d).getTime()).offsetWidth+1;var c=ij_getXY(o),h=document.createElement("div");h.style.position="absolute",h.style.overflow="hidden",h.style.left=c[0]+"px",h.style.top=c[1]+this.divHeight*(a+1)+a+"px",h.style.width=l+"px",h.style.height=this.divHeight+"px",h.style.backgroundColor=i.color;var m=document.createElement("table");m.width="100%",m.setAttribute("border","0"),m.setAttribute("cellspacing","0"),m.setAttribute("cellpadding","0"),m.className="ij_calendar_item_meatTxt",m.setAttribute("onmouseover","ij_styleCursorHand(this);"+this.objId+'.changeItemCss("'+n+'");'),m.setAttribute("onmouseout",this.objId+'.changeItemCss("'+n+'");'),m.setAttribute("onclick",this.objId+".dispalyItemDetail('"+i.idx+"');");var u,p=document.createElement("tr");return p.setAttribute("valign","top"),(u=document.createElement("td")).width="15",u.innerHTML=r[0],p.appendChild(u),(u=document.createElement("td")).innerHTML=i.title,p.appendChild(u),(u=document.createElement("td")).width="15",u.align="right",u.innerHTML=r[1],p.appendChild(u),m.appendChild(p),h.appendChild(m),h.innerHTML=h.innerHTML,h}return!1},ij_CalendarItem.prototype.dispalyMoreDates=function(){for(var e=0;e<this.moreDates.length;e++){var t,i,a,r,n,s="d"+this.moreDates[e].mDate.getTime(),o=document.getElementById(this.CalendarObjId+"_"+s);o&&(t=ij_getXY(o),(i=document.createElement("div")).id="ij_calendar_item_move_"+s,i.style.position="absolute",i.style.overflow="hidden",i.style.left=t[0]+o.offsetWidth-55+"px",i.style.top=t[1]+o.offsetHeight-13+"px",i.style.width="55px",i.style.height="15px",i.className="ij_calendar_item_meatTxt",(a=document.createElement("table")).width="100%",a.setAttribute("border","0"),a.setAttribute("cellspacing","0"),a.setAttribute("cellpadding","0"),a.className="ij_calendar_item_moreTxt",a.setAttribute("onmouseover",'ij_styleCursorHand(this);this.className = "ij_calendar_item_mouseover";'),a.setAttribute("onmouseout",'this.className = "ij_calendar_item_moreTxt";'),a.setAttribute("onclick",this.objId+".dispalyDate("+this.moreDates[e].mDate.getTime()+");"),r=document.createElement("tr"),(n=document.createElement("td")).align="center",n.innerHTML="+"+this.moreDates[e].num+" more",r.appendChild(n),a.appendChild(r),i.appendChild(a),i.innerHTML=i.innerHTML,document.body.appendChild(i),this.createDivs=this.createDivs.concat(i))}},ij_CalendarItem.prototype.dispalyDate=function(e){var t="ij_calendar_item_date_div",i=document.getElementById(t);i&&document.body.removeChild(i),e.constructor!=Date&&(e=new Date(e));var a=ij_getXY(document.getElementById(this.CalendarObjId+"_d"+e.getTime())),r=document.createElement("div");r.id=t,r.style.left=a[0]+"px",r.style.top=a[1]+"px",r.style.width="220px",(n=document.createElement("table")).width="100%",n.className="ij_calendar_item_datedivTxt",n.setAttribute("border","0"),n.setAttribute("cellspacing","0"),n.setAttribute("cellpadding","0");var n,s=document.createElement("tr");(l=document.createElement("td")).innerHTML=e.dateFormat(" %W, %m/%d"),s.appendChild(l),(l=document.createElement("td")).align="right",l.innerHTML="[X] ",l.setAttribute("onmouseover","ij_styleCursorHand(this);"),l.setAttribute("onclick",'document.body.removeChild(document.getElementById("'+r.
1id+'"))'),s.appendChild(l),n.appendChild(s),r.appendChild(n),(n=document.createElement("table")).width="100%",n.setAttribute("border","0"),n.setAttribute("cellspacing","1"),n.setAttribute("cellpadding","1");for(var o=0;o<this.showItems.length;o++){var l,d=this.showItems[o];e.getTime()>=d.startDate.getTime()&&e.getTime()<=d.endDate.getTime()&&((s=document.createElement("tr")).style.backgroundColor=d.color,(l=document.createElement("td")).className="ij_calendar_item_meatTxt",l.setAttribute("onmouseover",'ij_styleCursorHand(this);this.className = "ij_calendar_item_mouseover";'),l.setAttribute("onmouseout",'this.className = "ij_calendar_item_meatTxt";'),l.setAttribute("onclick",this.objId+".dispalyItemDetail('"+d.idx+"');"),l.innerHTML=d.title,s.appendChild(l),n.appendChild(s))}r.appendChild(n),r.innerHTML=r.innerHTML,document.body.appendChild(r),this.adjustBorders(r),this.createDivs=this.createDivs.concat(r)},ij_CalendarItem.prototype.dispalyItemDetail=function(e){var t=this.showItems[e],i="ij_calendar_item_detail_div",a=document.getElementById(i);a&&document.body.removeChild(a);var r=document.getElementById(this.CalendarObjId+"_DayTable"),n=ij_getXY(r),s=document.createElement("div");s.id=i,s.style.left=n[0]+30+"px",s.style.top=n[1]+30+"px",s.style.width=r.offsetWidth-65+"px",s.style.height=r.offsetHeight-55+"px",(o=document.createElement("table")).width="100%",o.className="ij_calendar_item_datedivTxt",o.setAttribute("border","0"),o.setAttribute("cellspacing","0"),o.setAttribute("cellpadding","0"),o.setAttribute("onmouseover","ij_styleCursorHand(this);"),o.setAttribute("onclick",'document.body.removeChild(document.getElementById("'+s.id+'"))');var o,l,d,c=document.createElement("tr"),h=document.createElement("td"),m=" "+t.startDate.getClosedIntervalTitle(t.endDate);0==t.isAllDay&&(m+=" "+t.startTime+" ~ "+t.endTime),h.innerHTML=m,c.appendChild(h),(h=document.createElement("td")).align="right",h.innerHTML="[X] ",c.appendChild(h),o.appendChild(c),s.appendChild(o),(o=document.createElement("table")).width="100%",o.setAttribute("border","0"),o.setAttribute("cellspacing","5"),o.setAttribute("cellpadding","0"),c=document.createElement("tr"),(h=document.createElement("td")).className="ij_calendar_item_detailTitle",h.innerHTML="ã"+t.title+"ã",null!=t.url&&""!=t.url&&((d=document.createElement("a")).href=t.url,d.target="_blank",d.innerHTML="Go",h.appendChild(d)),null!=t.place&&""!=t.place&&((l=document.createElement("span")).className="ij_calendar_item_detailTxt",l.innerHTML=" "+t.place,h.appendChild(l)),null!=this.editUri&&((l=document.createElement("span")).innerHTML=" ",h.appendChild(l),(d=document.createElement("a")).href=this.editUri+t.c_uid,d.innerHTML="[Edit]",h.appendChild(d)),c.appendChild(h),o.appendChild(c),c=document.createElement("tr"),(h=document.createElement("td")).className="ij_calendar_item_detailTxt";var u=document.createElement("div");u.style.overflow="auto",u.style.width=r.offsetWidth-75+"px",u.style.height=r.offsetHeight-100+"px",u.innerHTML=t.desc,h.appendChild(u),c.appendChild(h),o.appendChild(c),s.appendChild(o),s.innerHTML=s.innerHTML,document.body.appendChild(s),this.createDivs=this.createDivs.concat(s)},ij_CalendarItem.prototype.setLayerIdx=function(e,t){for(var i=new Array,a=0;a<t;a++){var r="d"+e.getDiffDate("d",a).getTime();if(this.LayerIdx[r]){for(var n=null,s=0;s<this.LayerIdx[r].length;s++)if(!this.LayerIdx[r][s]){n=s;break}}else n=0;i=i.concat(n)}for(n=(i=i.sort().reverse()).slice(0,1),a=0;a<t;a++)if(r="d"+e.getDiffDate("d",a).getTime(),this.LayerIdx[r]||(this.LayerIdx[r]=[!1,!1,!1,!1]),""!=n)this.LayerIdx[r][n]=!0;else{for(var o,l=e.getDiffDate("d",a),d=null,s=0;s<this.moreDates.length;s++)l.getTime()==this.moreDates[s].mDate.getTime()&&(d=s);null==d?(o={mDate:l,num:1},this.moreDates=this.moreDates.concat(o)):this.moreDates[d].num++}return""!=n?Number(n):null},ij_CalendarItem.prototype.removeItems=function(){for(var e=0;e<this.createDivs.length;e++)document.getElementById(this.createDivs[e].id)&&document.body.removeChild(this.createDivs[e]);this.createDivs=new Array,this.LayerIdx=new Object,this.moreDates=new Array},ij_CalendarItem.prototype.changeItemCss=function(e){for(var t=document.getElementById(e).getElementsByTagName("div"),i=0;i<t.length;i++){var a=t[i].getElementsByTagName("table")[0];"ij_calendar_item_meatTxt"==a.className?a.className="ij_calendar_item_mouseover":a.className="ij_calendar_item_meatTxt"}},ij_CalendarItem.prototype.getRssItems2Calendar=function(){for(var e=new Array,t=0;t<this.rssItems.length;t++){e[t]=new Object,e[t].c_title=this.rssItems[t].title,e[t].c_url=this.rssItems[t].link,e[t].c_desc=this.rssItems[t].description,e[t].c_color=this.rssItems[t].color;var i=ij_analyzeStrval(this.rssItems[t].remarks,"|"),a=i.c_date_start.split("-");e[t].c_date_start=new Date(a[0],a[1]-1,a[2],0,0,0,0),e[t].c_time_start=i.c_time_start,a=i.c_date_end.split("-"),e[t].c_date_end=new Date(a[0],a[1]-1,a[2],0,0,0,0),e[t].c_time_end=i.c_time_end,e[t].c_is_all_day=i.c_is_all_day,e[t].c_repeats_type=i.c_repeats_type,e[t].c_repeats_every=i.c_repeats_every,e[t].c_week_type=i.c_week_type,e[t].c_mon_rep_type=i.c_mon_rep_type,e[t].c_mon_week_num=i.c_mon_week_num,a=i.c_range_date_start.split("-"),e[t].c_range_date_start=new Date(a[0],a[1]-1,a[2],0,0,0,0),a=i.c_range_date_end.split("-"),e[t].c_range_date_end=new Date(a[0],a[1]-1,a[2],0,0,0,0),e[t].c_is_forever=i.c_is_forever,e[t].c_show_type=i.c_show_type,e[t].c_icon=i.c_icon}this.rssItems2Calendar=e},ij_CalendarItem.prototype.getObjItems2Calendar=function(){for(var e=new Array,t=0;t<this.rssItems.length;t++){_item=this.rssItems[t],e[t]=new Object,e[t].c_uid=_item.cal_df_uid,e[t].c_title=_item.cal_df_title,e[t].c_url="",e[t].c_desc=_item.cal_df_desc,e[t].c_color=_item.cal_mf_color,e[t].cal_df_place=_item.cal_df_place;var i=_item.c_date_start.split("-");e[t].c_date_start=new Date(i[0],i[1]-1,i[2],0,0,0,0),e[t].c_time_start=_item.c_time_start,i=_item.c_date_end.split("-"),e[t].c_date_end=new Date(i[0],i[1]-1,i[2],0,0,0,0),e[t].c_time_end=_item.c_time_end,e[t].c_is_all_day=_item.c_is_all_day,e[t].c_repeats_type=_item.c_repeats_type,e[t].c_repeats_every=_item.c_repeats_every,e[t].c_week_type=_item.c_week_type,e[t].c_mon_rep_type=_item.c_mon_rep_type,e[t].c_mon_week_num=_item.c_mon_week_num,i=_item.c_range_date_start.split("-"),e[t].c_range_date_start=new Date(i[0],i[1]-1,i[2],0,0,0,0),i=_item.c_range_date_end.split("-"),e[t].c_range_date_end=new Date(i[0],i[1]-1,i[2],0,0,0,0),e[t].c_is_forever=_item.c_is_forever,e[t].c_show_type=1,e[t].c_icon=""}this.rssItems2Calendar=e}
1,ij_CalendarItem.prototype.analyzeItems=function(){for(var r=this.CalendarObj,n=new Array,s=0,e=0;e<this.rssItems2Calendar.length;e++){var t=this.rssItems2Calendar[e];if(this.CalendarObj.cEndDate.getTime()>=t.c_range_date_start.getTime()&&(1==t.c_is_forever||this.CalendarObj.cStartDate.getTime()<=t.c_range_date_end.getTime())&&0<=t.c_show_type){var i,a,o,l=t.c_date_start.getDateDiff("d",t.c_date_end),d=Number(t.c_repeats_every);switch(t.c_week_type&&(i=t.c_week_type.split(",")),t.c_mon_week_num&&(a=t.c_mon_week_num.split(",")),t.c_repeats_type){case"1":for(var c=t.c_date_start;this.CalendarObj.cEndDate.getTime()>=c.getTime();)u(t,o=new Date(c.getTime()),o.getDiffDate("d",l)),c=c.getDiffDate("d",d);break;case"2":for(c=t.c_range_date_start.getWeekDate(0);this.CalendarObj.cEndDate.getTime()>=c.getTime();){for(var h=0;h<i.length;h++)u(t,o=c.getWeekDate(i[h]),o.getDiffDate("d",l));c=c.getDiffDate("w",d)}break;case"3":for(c=t.c_range_date_start.getMonthFirstDate();this.CalendarObj.cEndDate.getTime()>=c.getTime();){if("1"==t.c_mon_rep_type)(o=new Date(c.getTime())).setDate(t.c_date_start.getDate()),u(t,o,o.getDiffDate("d",l));else for(var m=0;m<a.length;m++)for(o=(o=new Date(c.getTime())).getDiffDate("w",a[m]-1),h=0;h<i.length;h++)u(t,o=o.getWeekDate(i[h]),o.getDiffDate("d",l));c=c.getDiffDate("m",d)}break;case"4":for(c=t.c_range_date_start;this.CalendarObj.cEndDate.getTime()>=c.getTime();){(o=new Date(c.getTime())).setMonth(t.c_date_start.getMonth(),t.c_date_start.getDate()),u(t,o,o.getDiffDate("d",l)),c=c.getDiffDate("y",d)}break;default:u(t,t.c_date_start,t.c_date_end)}}}function u(e,t,i){var a;t.getTime()>=e.c_range_date_start.getTime()&&(1==e.c_is_forever||i.getTime()<=e.c_range_date_end.getTime())&&i.getTime()>=r.cStartDate.getTime()&&((a=new Object).c_uid=e.c_uid,a.startDate=t,a.endDate=i,a.startTime=e.c_time_start.substring(0,5),a.endTime=e.c_time_end.substring(0,5),a.isAllDay=e.c_is_all_day,a.color=e.c_color,a.url=e.c_url,a.title=e.c_title,a.desc=e.c_desc,a.place=e.cal_df_place,a.idx=s,n[s]=a,s++)}this.showItems=n},ij_CalendarItem.prototype.adjustBorders=function(e){var t=document.getElementById(this.CalendarObjId+"_DayTable"),i=ij_getXY(t),a=i[0]+t.offsetWidth,r=i[1]+t.offsetHeight,n=ij_getXY(e),s=n[0]+e.offsetWidth,o=n[1]+e.offsetHeight;a<s&&(e.style.left=n[0]-(s-a)+"px"),r<o&&(e.style.top=n[1]-(o-r)+"px")},Date.prototype.utc_s=1e3,Date.prototype.utc_n=60*Date.prototype.utc_s,Date.prototype.utc_h=60*Date.prototype.utc_n,Date.prototype.utc_d=24*Date.prototype.utc_h,Date.prototype.utc_w=7*Date.prototype.utc_d,Date.prototype.dateFormat=function(e,t){return(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/%Y/g,this.getFullYear())).replace(/%twY/g,this.getFullYear()-1911)).replace(/%m/g,this.getMonth()+1)).replace(/%d/g,this.getDate())).replace(/%H/g,this.getHours())).replace(/%n/g,this.getMinutes())).replace(/%s/g,this.getSeconds())).replace(/%is/g,this.getMilliseconds())).replace(/%w/g,this.getDay())).replace(/%W/g,this.getWeekString(t))},Date.prototype.getMonthDays=function(){var e=new Array(31,28,31,30,31,30,31,31,30,31,30,31);return year=this.getFullYear(),(year%4==0&&year%100!=0||year%400==0)&&(e[1]=29),e[this.getMonth()]},Date.prototype.getWeekString=function(e){switch(e){case"zh-tw":case"zh-cn":var t=new Array("æ¥","ä¸","äº","ä¸","å","äº","å
");break;case"ja":t=new Array("æ¥","æ","ç«","æ°´","æ¨","é","å");break;default:t=new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")}return t[this.getDay()]},Date.prototype.getMonthFirstDate=function(){var e=new Date(this.getTime());return e.setDate(1),e},Date.prototype.getMonthLastDate=function(){var e=new Date(this.getTime());return e.setDate(this.getMonthDays()),e},Date.prototype.getWeekDate=function(e){var t=this.getTime()-864e5*(this.getDay()-e);return new Date(t)},Date.prototype.getDateDiff=function(e,t){if(1==arguments.length)t=new Date;else if(0==arguments.length||t.constructor!=Date)return;switch(e){case"s":return parseInt((t-this)/this.utc_s);case"n":return parseInt((t-this)/this.utc_n);case"h":return parseInt((t-this)/this.utc_h);case"d":return parseInt((t-this)/this.utc_d);case"w":return parseInt((t-this)/this.utc_w);case"m":var i=t.getMonth()+1+12*(t.getFullYear()-this.getFullYear())-(this.getMonth()+1);return this.getTime()<=t.getTime()?this.getDate()>t.getDate()&&i--:this.getDate()<t.getDate()&&i++,i;case"y":return i=t.getFullYear()-this.getFullYear(),this.getTime()<=t.getTime()?(this.getMonth()>t.getMonth()||this.getMonth()==t.getMonth()&&this.getDate()>t.getDate())&&i--:(this.getMonth()<t.getMonth()||this.getMonth()==t.getMonth()&&this.getDate()<t.getDate())&&i++,i;default:return}},Date.prototype.getDiffDate=function(e,t){if(!(arguments.length<2)){if("number"!=typeof t&&(t=Number(t)),0==t)return new Date(this.getTime());switch(e){case"s":var i=this.getTime()+this.utc_s*t;return new Date(i);case"n":return i=this.getTime()+this.utc_n*t,new Date(i);case"h":return i=this.getTime()+this.utc_h*t,new Date(i);case"d":return i=this.getTime()+this.utc_d*t,new Date(i);case"w":return i=this.getTime()+this.utc_w*t,new Date(i);case"m":for((a=new Date(this.getTime())).setMonth(this.getMonth()+t);a.getMonth()==this.getMonth()||a.getMonth()>this.getMonth()+t;)a.setDate(a.getDate()-1);return a;case"y":var a;for((a=new Date(this.getTime())).setFullYear(this.getFullYear()+t);a.getMonth()>this.getMonth();)a.setDate(a.getDate()-1);return a;default:return}}},Date.prototype.getClosedIntervalTitle=function(e){var t,i;return this.getTime()<=e.getTime()?(t=this,i=e):(i=this,t=e),t.getFullYear()==i.getFullYear()?t.getMonth()==i.getMonth()?t.getDate()==i.getDate()?t.getMonth()+1+"/"+t.getDate()+", "+t.getFullYear():t.getMonth()+1+"/"+t.getDate()+" - "+i.getDate()+", "+t.getFullYear():t.getMonth()+1+"/"+t.getDate()+" - "+(i.getMonth()+1)+"/"+i.getDate()+", "+t.getFullYear():t.getMonth()+1+"/"+t.getDate()+", "+t.getFullYear()+" - "+(i.getMonth()+1)+"/"+i.getDate()+", "+i.getFullYear()},Date.prototype.getClockerStr=function(e){arguments.length<1&&(e="%y å¹´ %m åæ %d 天å %h å°æ %n å %s ç§");var t,i,a=new Date;this.getTime()<=a.getTime()?(t=this,i=a):(i=this,t=a);var r=Math.ceil((i.getTime()-t.getTime())/36e5),n=t.getDateDiff("y",i),s=(t=t.getDiffDate("y",n)).getDateDiff("m",i),o=(t=t.getDiffDate("m",s)).getDateDiff("d",i),l=(t=t.getDiffDate("d",o)).getDateDiff("h",i),d=(t=t.getDiffDate("h",l)).getDateDiff("n",i),c=(t=t.getDiffDate("n",d)).getDateDiff("s",i);
1return 99<r&&(r=99),(e=(e=(e=(e=(e=(e=e.replace(/%y/gi,n)).replace(/%m/gi,s)).replace(/%d/gi,o)).replace(/%h/gi,l)).replace(/%n/gi,d)).replace(/%s/gi,c)).replace(/%tH/gi,r)},DescDiv.prototype.create=function(){document.getElementById(this.id)&&this.remove(),this.oDescDiv=document.createElement("div"),this.oDescDiv.id=this.id,this.oDescDiv.style.position="absolute",this.oDescDiv.style.display="none",this.oDescDiv.style.left=this._x,this.oDescDiv.style.top=this._y,this.oDescDiv.style.filter="alpha(opacity="+this.alpha+")",this.oDescDiv.style.opacity=this.alpha/100,this.oDescDiv.style.zIndex="100";var e=document.createElement("table");this.width&&(e.style.width=this.width+"px"),this.height&&(e.style.height=this.height+"px"),this.borderColor&&(e.style.backgroundColor="#"+this.borderColor),e.setAttribute("border","0px"),e.setAttribute("cellpadding","5px"),e.setAttribute("cellspacing","1px"),e.className=this.className;var t=document.createElement("tr"),i=document.createElement("td");this.backgroundColor&&(i.style.backgroundColor="#"+this.backgroundColor),i.innerHTML=this.innerHTML,t.appendChild(i),e.appendChild(t),this.oDescDiv.appendChild(e),document.body.appendChild(this.oDescDiv),this.oDescDiv.innerHTML=this.oDescDiv.innerHTML},DescDiv.prototype.display=function(e){this.create(),ij_showDiv(this.id,!0),this.height=this.oDescDiv.offsetHeight,this.width=this.oDescDiv.offsetWidth,ij_mousePos&&this.isMousePos&&(ij_getWindowWH()[0]-ij_mousePos.x<this.width?this._x=this.oDescDiv.style.left=ij_mousePos.x-this.width:this._x=this.oDescDiv.style.left=ij_mousePos.x,ij_getWindowWH()[1]-ij_mousePos.y<this.height?this._y=this.oDescDiv.style.top=ij_mousePos.y-this.height:this._y=this.oDescDiv.style.top=ij_mousePos.y)},DescDiv.prototype.remove=function(){document.getElementById(this.id)&&(ij_showDiv(this.id,!1),document.body.removeChild(this.oDescDiv))},FormControl.prototype.submit=function(e,t){e&&(this.form.method=e),t&&(this.form.action=t),this.form.submit()},FormControl.prototype.reset=function(){return this.form.reset(),!0},FormControl.prototype.clearValue=function(){for(var e=0;e<this.form.length;e++)if(this.form[e].name){switch(this.form[e].type.toLowerCase()){case"text":case"textarea":case"file":case"hidden":case"password":this.setValue(this.form[e].name,"");break;case"checkbox":case"radio":this.setChecked(this.form[e].name,"","value",!0)}"SELECT"==this.form[e].nodeName&&this.setSelected(this.form[e].name,"","value",!0)}return!0},FormControl.prototype.setValue=function(elName,value){var elObj=eval("this.form."+elName);return!!elObj&&(elObj.value=value,!0)},FormControl.prototype.appendValue=function(elName,value,lf){var elObj=eval("this.form."+elName);return!(!elObj||!elObj.value||(lf&&(elObj.value+="\n"),elObj.value+=value,0))},FormControl.prototype.getValue=function(elName){var elObj=eval("this.form."+elName);return elObj&&elObj.value?elObj.value:""},FormControl.prototype.setReadonly=function(elName,isReadonly){var elObj=eval("this.form."+elName);elObj.readOnly=!!isReadonly},FormControl.prototype.setDisable=function(elName,isDisable,idx){var elObj=eval("this.form."+elName);if(elObj){if(elObj.type)switch(elObj.type.toLowerCase()){case"text":case"textarea":case"file":case"hidden":case"password":case"reset":case"button":case"submit":case"image":elObj.disabled=isDisable;break;case"select-one":case"select-multiple":elObj.disabled=isDisable}else if(null!=idx)elObj[idx].disabled=isDisable;else for(var i=0;i<elObj.length;i++)elObj[i].disabled=isDisable;return!0}return!1},FormControl.prototype.setDisableByItem=function(elName,value,type,isDisable){var elObj=eval("this.form."+elName),idx,idx;return!!elObj&&(idx="index"==type?Number(value):this.getItemIdx(elName,value,type),elObj[idx].disabled=isDisable,!0)},FormControl.prototype.setSelected=function(elName,value,type,unSelected){var elObj=eval("this.form."+elName),arrValue,arrValue;if(elObj&&"SELECT"==elObj.nodeName){if(arrValue="object"==typeof value?value:[value],arguments.length<4&&(unSelected=!0),unSelected)for(var i=0;i<elObj.length;i++)elObj[i].selected=!1;for(var j=0;j<arrValue.length;j++){var _value=arrValue[j],idx,idx;idx="index"==type?Number(_value):this.getItemIdx(elName,_value,type),elObj[idx]&&(elObj[idx].selected=!0)}return!0}return!1},FormControl.prototype.setSelectedAll=function(elName,type){var elObj=eval("this.form."+elName);if(elObj&&"select-multiple"==elObj.type.toLowerCase()){for(var i=0;i<elObj.length;i++)1==arguments.length?elObj[i].selected?elObj[i].selected=!1:elObj[i].selected=!0:elObj[i].selected=type;return!0}return!1},FormControl.prototype.getSelected=function(elName){var elObj=eval("this.form."+elName);if(elObj&&"SELECT"==elObj.nodeName){for(var arrValue=new Array,i=0;i<elObj.length;i++)elObj[i].selected&&arrValue.push(elObj[i].value);return 0==arrValue.length?"":arrValue}return!1},FormControl.prototype.isSelectedByItem=function(elName,value,type){var elObj=eval("this.form."+elName),idx,idx;return!(!elObj||"SELECT"!=elObj.nodeName)&&(idx="index"==type?Number(value):this.getItemIdx(elName,value,type),!!elObj[idx]&&elObj[idx].selected)},FormControl.prototype.getOption=function(elName,value,type){var elObj=eval("this.form."+elName),idx,idx;return!(!elObj||"SELECT"!=elObj.nodeName)&&(idx="index"==type?Number(value):this.getItemIdx(elName,value,type),!!elObj[idx]&&elObj[idx])},FormControl.prototype.appendOption=function(elName,value,innerHTML){var elObj=eval("this.form."+elName);if(elObj&&"SELECT"==elObj.nodeName){innerHTML=innerHTML||value;var newOption=this._document.createElement("option");return newOption.value=value,newOption.innerHTML=innerHTML,elObj.appendChild(newOption),!0}return!1},FormControl.prototype.appendOption2=function(elName,value,innerHTML,sd){var elObj=eval("this.form."+elName);if(elObj&&"SELECT"==elObj.nodeName){innerHTML=innerHTML||value;var newOption=this._document.createElement("option");return newOption.value=value,newOption.innerHTML=innerHTML,innerHTML==sd&&newOption.setAttribute("selected","1"),elObj.appendChild(newOption),!0}return!1},FormControl.prototype.removeOption=function(elName,value,type){var elObj=eval("this.form."+elName),idx,idx;return!(!elObj||"SELECT"!=elObj.nodeName)&&(idx="index"==type?Number(value):this.getItemIdx(elName,value,type),!!elObj[idx]&&(elObj.removeChild(elObj[idx]),!0))},FormControl.prototype.removeOptionAll=function(elName){var elObj=eval("this.form."+elName);if(elObj&&"SELECT"==elObj.nodeName){for(;0<elObj.length;)elObj.removeChild(elObj[0]);return!0}return!1},FormControl.prototype.outInOption=function(outElName,inElName){var outElObj=eval("this.form."+outElName),inElObj=eval("this.form."+inElName),arrItem=this.getSelected(outElName);if(outElObj&&"SELECT"==outElObj.nodeName&&0<arrItem.length&&inElObj&&"SELECT"==inElObj.nodeName){for(var i=0;i<arrItem.length;i++){var idx=this.getItemIdx(outElName,arrItem[i],"value");this.appendOption(inElName,outElObj[idx].value,outElObj[idx].innerHTML),this.removeOption(outElName,idx,"index")}return!0}return!1},FormControl.prototype.setChecked=function(elName,value,type,unSelected){var elObj=eval("this.form."+elName),arrValue,arrValue;if(!elObj[0]||"checkbox"!=elObj[0].type.toLowerCase()&&"radio"!=elObj[0].type.toLowerCase())return!1;if(arrValue="object"==typeof value?value:[value],arguments.length<4&&(unSelected=!0),unSelected)for(var i=0;i<elObj.length;i++)elObj[i].checked=!1;for(var j=0;j<arrValue.length;j++){var _value=arrValue[j],idx,idx;idx="index"==type?Number(_value):this.getItemIdx(elName,_value,type),elObj[idx]&&(elObj[idx].checked=!0)}return!0},FormControl.prototype.setCheckedAll=function(elName,type){var elObj=eval("this.form."+elName),length=elObj.length;if(0<length&&"checkbox"==elObj[0].type.toLowerCase()){for(var i=0;i<elObj.length;i++)elObj[i].checked=type;return!0}elObj.checked=type},FormControl.prototype.getChecked=function(elName){var elObj=eval("this.form."+elName);if(!elObj)return!1;if(!elObj[0])return!!elObj.checked&&elObj.value;if(!elObj[0]||"checkbox"!=elObj[0].type.toLowerCase()&&"radio"!=elObj[0].type.toLowerCase())return!1;for(var arrValue=new Array,i=0;i<elObj.length;i++)elObj[i].checked&&arrValue.push(elObj[i].value);return 0!=arrValue.length&&arrValue},FormControl.prototype.isCheckedByItem=function(elName,value,type){var elObj=eval("this.form."+elName),idx,idx;return!(!elObj[0]||"checkbox"!=elObj[0].type.toLowerCase()&&"radio"!=elObj[0].type.toLowerCase())&&(idx="index"==type?Number(value):this.getItemIdx(elName,value,type),!!elObj[idx]&&elObj[idx].checked)},FormControl.prototype.getItemIdx=function(elName,value,type){var elObj=eval("this.form."+elName);switch(type){case"value":for(var i=0;i<elObj.length;i++)if(elObj[i].value==value)return i;break;case"innerHTML":for(var i=0;i<elObj.length;i++)if(elObj[i].innerHTML==value)return i;break;default:return 0}},FormControl.prototype.obj2Form=function(obj){for(var elName in obj){var val=eval("obj."+elName),elObj=eval("this.form."+elName);if(elObj.type)switch(elObj.type.toLowerCase()){case"text":case"textarea":case"file":case"hidden":case"password":case"reset":case"button":case"submit":this.setValue(elName,val);break;case"select-one":case"select-multiple":this.setSelected(elName,val,"value",!0)}else this.setChecked(elName,val,"value",!0)}return!0},FormControl.prototype.form2Obj=function(e){e=new Object;for(var t=0;t<this.form.length;t++)if(this.form[t].name)switch(this.form[t].type.toLowerCase()){case"text":case"textarea":case"file":case"hidden":case"password":case"reset":case"button":case"submit":case"image":e[this.form[t].name]=this.getValue(this.form[t].name);break;case"checkbox":case"radio":e[this.form[t].name]=this.getChecked(this.form[t].name);break;case"select-one":case"select-multiple":e[this.form[t].name]=this.getSelected(this.form[t].name)}return e},ij_Gmap.prototype.init=function(){this.ijMap=new GMap2(document.getElementById(this.divId)),this.mapCenterPoint||(this.mapCenterPoint=new GLatLng(this.mapCenter[0],this.mapCenter[1])),this.ijMap.setCenter(this.mapCenterPoint,this.mapZoom),GEvent.addListener(this.ijMap,"moveend",function(){e.mapCenterPoint=e.ijMap.getCenter()});var e=this;this.__addMapType__()},ij_Gmap.prototype.addControl=function(){for(i=0;i<arguments.length;i++){var type=arguments[i];eval("this.my"+type+" = new "+type+"()"),eval("this.ijMap.addControl( this.my"+type+" )")}},ij_Gmap.prototype.addControl=function(){for(i=0;i<arguments.length;i++){var type=arguments[i];eval("this.ijMap.removeControl( this.my"+type+" )")}},ij_Gmap.prototype.setConfiguration=function(){for(i=0;i<arguments.length;i++)switch(arguments[i]){case"googleBar":this.ijMap.enableGoogleBar();break;case"notDragging":this.ijMap.disableDragging();break;case"scrollWheelZoom":this.ijMap.enableScrollWheelZoom()}},ij_Gmap.prototype.addMapTypes=function(){for(this.ijMap.getMapTypes().length=0,i=0;i<arguments.length;i++){var mapType=eval(arguments[i]);mapType.mapName=arguments[i],this.ijMap.addMapType(mapType)}},ij_Gmap.prototype.setMapType=function(mapType){this.ijMap.setMapType(eval(mapType))},ij_Gmap.prototype.setZoom=function(e){this.ijMap.setZoom(e),this.mapZoom=e},ij_Gmap.prototype.addMarker=function(e,t,i){var a=new GMarker(e,i);this.ijMap.addOverlay(a),t&&(a.openInfoWindowHtml(t),GEvent.addListener(a,"click",function(){a.openInfoWindowHtml(t)})),this.addMarkers.push(a),this.addLatLngs.push(e),this.addPolyline&&this.ijMap.removeOverlay(this.addPolyline),this.addPolyline=this.__addPolyline__(this.addLatLngs),this.ijMap.addOverlay(this.addPolyline)},ij_Gmap.prototype.addIcon=function(e){var t=new GIcon(G_DEFAULT_ICON);return t.image=e.image,e.iconAnchor||(e.iconAnchor=new Array(16,16)),t.iconAnchor=new GPoint(e.iconAnchor[0],e.iconA
1nchor[1]),e.infoWindowAnchor||(e.infoWindowAnchor=new Array(16,0)),t.infoWindowAnchor=new GPoint(e.infoWindowAnchor[0],e.infoWindowAnchor[1]),e.iconSize||(e.iconSize=new Array(32,32)),t.iconSize=new GSize(e.iconSize[0],e.iconSize[1]),e.shadow&&(t.shadow=e.shadow),e.shadowSize||(e.shadowSize=new Array(60,32)),t.shadowSize=new GSize(e.shadowSize[0],e.shadowSize[1]),e.maxHeight||(e.maxHeight=16),t.maxHeight=e.maxHeight,t},ij_Gmap.prototype.geoXml=function(e){var t=this.ijMap,i=new GGeoXml(e,function(){i.loadedCorrectly()?i.gotoDefaultViewport(t):alert("Not Load Properly")});this.ijMap.addOverlay(i)},ij_Gmap.prototype.evAddress=function(e){var t=this,a=arguments;(new GClientGeocoder).getLatLng(e,function(e){if(e)for(i=1;i<a.length;i++)t.__event__(a[i],e);else t.__addressGpsErr__()})},ij_Gmap.prototype.evLatLng=function(e,t){var a=arguments,r=new GLatLng(e,t);for(i=2;i<a.length;i++)this.__event__(a[i],r)},ij_Gmap.prototype.evClickMap=function(){var a=this,r=arguments;GEvent.addListener(this.ijMap,"click",function(e,t){for(i=0;i<r.length;i++)switch(a.__event__(r[i],t,e),r[i].ev){case"removeOverlay":e&&a.ijMap.removeOverlay(e)}})},ij_Gmap.prototype.__event__=function(e,t,i){switch(t=t||i.Q,e.ev){case"init":this.mapCenterPoint=t,this.init();break;case"panTo":this.ijMap.panTo(t);break;case"getPoint":this.getPoint=t;break;case"addMarker":i||this.addMarker(t,e.html,e.icon);break;case"flyMarker":i||this.__setFlyMarker__(t,e.html,e.dragend);break;case"openInfo":this.ijMap.openInfoWindowHtml(t,e.html);break;case"output":"value"==e.elArg?document.getElementById(e.elId).value=t.toString():document.getElementById(e.elId).innerHTML=t.toString();break;case"setZoom":this.setZoom(e.level)}},ij_Gmap.prototype.__setFlyMarker__=function(e,t,a){this.flyMarker&&this.ijMap.removeOverlay(this.flyMarker),this.flyMarker=new GMarker(e,{icon:this.flyIcon,draggable:!0}),this.flyMarker.draggable=!0,this.ijMap.addOverlay(this.flyMarker);var r=this,n=this.flyMarker,s=a;t&&(this.flyMarker.openInfoWindowHtml(t),GEvent.addListener(this.flyMarker,"click",function(){n.openInfoWindowHtml(t)}),GEvent.addListener(this.flyMarker,"dragstart",function(){n.closeInfoWindow()})),a&&GEvent.addListener(this.flyMarker,"dragend",function(){var e=n.getLatLng();for(i=0;i<s.length;i++)r.__event__(s[i],e)})},ij_Gmap.prototype.__addPolyline__=function(e,t,i){return t=t||"#FF0000",new GPolyline(e,t,i)},ij_Gmap.prototype.__str2LatLng__=function(e){var t=(e=(e=e.replace("(","")).replace(")","")).split(",");return t[0]=Number(t[0]),t[1]=Number(t[1]),t},ij_Gmap.prototype.__addressGpsErr__=function(){alert("éåå°å Google 說ä¸ç¥éï¼æä»¥æ²è¾¦æ³é¡¯ç¤ºå°åï¼")},ij_Gmap.prototype.addMyMapType=function(i){i.minZ||(i.minZ=0),i.maxZ||(i.maxZ=2);var e=new GCopyrightCollection("MyMap ");e.addCopyright(new GCopyright("MyMap",new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180)),0,i.copyright));var t=new GTileLayer(e,i.minZoom,i.maxZoom);t.getTileUrl=function(e,t){return i.tileUrl+t+"_"+e.y+"_"+e.x+"."+i.imgEx},MY_MAP=new GMapType([t],new GMercatorProjection(23),i.name,{shortName:"MyMap",alt:i.alt})},ij_Gmap.prototype.__addMapType__=function(){var e=new GCopyrightCollection("ä¸å½å°å¾ ");e.addCopyright(new GCopyright("Ditu",new GLatLngBounds(new GLatLng(-90,-180),new GLatLng(90,180)),0,"©2007 Google"));var t=new GTileLayer(e,1,17);t.getTileUrl=function(e,t){return"https://mapgoogle.mapabc.com/googlechina/maptile?v=w2.52&x="+e.x+"&y="+e.y+"&zoom="+(17-t)},G_CHINA_MAP=new GMapType([t],new GMercatorProjection(23),"ä¸å½",{shortName:"Ditu",alt:"æ¾ç¤ºä¸å½å°å¾"})};var beforeOnload=window.onload||function(){};function ij_moveDivTop(e,t){document.getElementById;var i,a,r,n,s=!!document.layers,o=document.getElementById(e);o&&(a=s?(i=o.top,windows.pageoffsetSize+t):(i=parseInt(o.style.top,10),document.body.scrollTop+t),n=500,i!=a&&(r=Math.ceil(Math.abs(a-i)/20),r=i<a?r:-r,s?o.top+=r:o.style.top=parseInt(o.style.top,10)+r,n=10),setTimeout("ij_moveDivTop( '"+e+"', "+t+" )",n))}function Masking(e,t,i){this.id=e,this.alpha=null==t?50:t,this.backgroundColor=null==i?"000000":i,this.oMasking=document.createElement("div"),this.oLoader=document.createElement("table"),this.oIframe=document.createElement("table"),this.create()}function ij_Picasa(e,t,i,a){this.userId=e,this.divId=t,this.objId=i,this.colNum=a,this.elPicasa=document.getElementById(this.divId),this.arrAlbumsList=new Array,this.objAlbum=new Object,this.cTdWidth=Math.floor(100/this.colNum)+"%",this.getAlbumsList()}function ij_listObjectProperty(obj,output){var properties="",oList,newLegend,newDiv;for(var name in obj){var val=eval("obj."+name);properties+=output?'<span style="font-weight:bold; color:#0066FF">'+name+" = </span>"+val+"<br>":name+" = "+val+"\n"}return output&&(document.getElementById("listObjectProperty")&&document.body.removeChild(document.getElementById("listObjectProperty")),oList=document.createElement("fieldset"),oList.id="listObjectProperty",newLegend=document.createElement("legend"),newLegend.innerHTML="List Object Property",oList.appendChild(newLegend),newDiv=
1document.createElement("div"),newDiv.innerHTML=properties,oList.appendChild(newDiv),document.body.appendChild(oList)),properties}function ij_getUrlDomain(e){var t=e.match(/^([A-Za-z]+:\/+)*([^\:^\/]+):?(\d*)(\/.*)*/);return t?t[2]:e}function ij_isIE(){return"Microsoft Internet Explorer"==window.navigator.appName}function ij_styleDisplayOn(){return ij_isIE()?"block":"table-row"}function ij_styleDisplay(e,t){document.getElementById(e).style.display=t?ij_styleDisplayOn():"none"}function ij_styleDisplayCutoff(e){"none"==document.getElementById(e).style.display?(ij_styleDisplay(e,!0),document.getElementById("checkbox17")&&(document.getElementById("checkbox17").checked=!0)):(ij_styleDisplay(e,!1),document.getElementById("checkbox17")&&(document.getElementById("checkbox17").checked=!1))}function ij_styleCursorHand(e){ij_isIE()?e.style.cursor="hand":e.style.cursor="pointer"}function ij_analyzeStrval(e,t){var i=new Object;_arrStr=e.split(t);for(var a=0;a<_arrStr.length;a++){var r=_arrStr[a].split("=");i[r[0]]=r[1]}return i}function ij_addListener(e,t,i){return ij_isIE()?e.attachEvent("on"+t,i):e.addEventListener(t,i,!1),!0}function ij_loadCss(e){var t=document.getElementsByTagName("head")[0],i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.href=e,t.appendChild(i)}function ij_loader(e){var t;e=e||IJ.baseTplUri+"ajax-loader_2.gif",document.getElementById("ij_Loader")||((t=document.createElement("div")).id="ij_Loader",t.style.position="absolute",t.style.left=0,t.style.top=document.body.scrollTop,t.style.zIndex="500",document.createElement("img"))}function ij_removeLoader(){var e=document.getElementById("ij_Loader");e&&(ij_styleDisplay("ij_Loader",!1),document.body.removeChild(e))}window.onload=function(){beforeOnload(),document.onmousemove=ij_mouseMove},this.JSON||(JSON=function(){function f(e){return e<10?"0"+e:e}Date.prototype.toJSON=function(){return this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z"};var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function stringify(e,t){var i,a,r,n,s,o=/["\\\x00-\x1f\x7f-\x9f]/g;switch(typeof e){case"string":return o.test(e)?'"'+e.replace(o,function(e){var t=m[e];return t||(t=e.charCodeAt(),"\\u00"+Math.floor(t/16).toString(16)+(t%16).toString(16))})+'"':'"'+e+'"';case"number":return isFinite(e)?String(e):"null";case"boolean":case"null":return String(e);case"object":if(!e)return"null";if("function"==typeof e.toJSON)return stringify(e.toJSON());if(i=[],"number"==typeof e.length&&!e.propertyIsEnumerable("length")){for(n=e.length,a=0;a<n;a+=1)i.push(stringify(e[a],t)||"null");return"["+i.join(",")+"]"}if(t)for(n=t.length,a=0;a<n;a+=1)"string"==typeof(r=t[a])&&(s=stringify(e[r],t))&&i.push(stringify(r)+":"+s);else for(r in e)"string"==typeof r&&(s=stringify(e[r],t))&&i.push(stringify(r)+":"+s);return"{"+i.join(",")+"}"}}return{stringify:stringify,parse:function(text,filter){var j;function walk(e,t){var i,a;if(t&&"object"==typeof t)for(i in t)Object.prototype.hasOwnProperty.apply(t,[i])&&(void 0!==(a=walk(i,t[i]))?t[i]=a:delete t[i]);return filter(e,t)}if(/^[\],:{}\s]*$/.test(text.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof filter?walk("",j):j;throw new SyntaxError("parseJSON")}}}()),Masking.prototype.create=function(){this.oMasking.id=this.id,this.oMasking.style.position="absolute",this.oMasking.style.display="none",this.oMasking.style.width=ij_getWindowWH()[0]+500+"px",this.oMasking.style.height=ij_getWindowWH()[1]+500+"px",this.oMasking.style.left=document.body.scrollLeft-250,this.oMasking.style.top=document.body.scrollTop-250,this.backgroundColor&&(this.oMasking.style.backgroundColor="#"+this.backgroundColor),this.oMasking.style.filter="alpha(opacity="+this.alpha+")",this.oMasking.style.opacity=this.alpha/100,document.body.appendChild(this.oMasking),this.oMasking.innerHTML=this.oMasking.innerHTML},Masking.prototype.loader=function(e){e=e||IJ.baseTplUri+"ajax-loader.gif",this.oLoader.style.width="100%",this.oLoader.style.height=ij_getW
1indowWH()[1]+250+"px";var t=document.createElement("tr"),i=document.createElement("td");i.align="center";var a=document.createElement("img");a.src=e,i.appendChild(a),t.appendChild(i),this.oLoader.appendChild(t),this.oMasking.appendChild(this.oLoader),this.oMasking.innerHTML=this.oMasking.innerHTML},Masking.prototype.iframeOpenUri=function(e){this.oIframe.style.width="100%",this.oIframe.style.height=.85*ij_getWindowWH()[1]+"px";var t=document.createElement("tr"),i=document.createElement("td");i.align="center";var a=document.createElement("iframe");a.src=e,a.name="maskFrame",a.width="80%",a.marginwidth="0",a.height="100%",a.marginheight="0",a.scrolling="auto",a.id="editFrame",i.appendChild(a),t.appendChild(i),this.oIframe.appendChild(t),this.oMasking.appendChild(this.oIframe),this.oMasking.innerHTML=this.oMasking.innerHTML},Masking.prototype.display=function(){ij_showDiv(this.id,!0);var e=this.id;window.onscroll=function(){document.getElementById(e)&&(document.getElementById(e).style.top=document.body.scrollTop-250,document.getElementById(e).style.left=document.body.scrollLeft-250)}},Masking.prototype.remove=function(){document.getElementById(this.id)&&(ij_showDiv(this.id,!1),document.body.removeChild(this.oMasking))},ij_Picasa.prototype.displayAlbumsList=function(){var e=Math.ceil(this.arrAlbumsList.length/this.colNum),t=document.createElement("table");t.setAttribute("width","100%"),t.setAttribute("border","0"),t.setAttribute("cellspacing","5"),t.setAttribute("cellpadding","0");for(var i=0;i<e;i++){for(var a=document.createElement("tr"),r=0;r<this.colNum;r++){var n,s,o,l=i*this.colNum+r,d=document.createElement("td");d.setAttribute("align","center"),d.width=this.cTdWidth,this.arrAlbumsList[l]&&((n=document.createElement("table")).setAttribute("width","194"),n.setAttribute("height","194"),n.setAttribute("background",IJ.baseTplUri+"album_background.gif"),n.setAttribute("border","0"),n.setAttribute("cellspacing","0"),n.setAttribute("cellpadding","0"),s=document.createElement("tr"),(o=document.createElement("td")).setAttribute("align","center"),o.setAttribute("onmouseover","javascript:ij_styleCursorHand(this);"),o.setAttribute("onclick","javascript:"+this.objId+".getPhotosList('', '', '"+this.arrAlbumsList[l].id+"');"),o.innerHTML=this.arrAlbumsList[l].cover_img,s.appendChild(o),n.appendChild(s),d.appendChild(n),d.innerHTML+='<span style="font-size:15px; font-weight:bold">'+this.arrAlbumsList[l].title+"</span></a>",d.innerHTML+='<span style="font-size:11px;"> ( '+this.arrAlbumsList[l].numphotos+" )</span>",this.arrAlbumsList[l].location&&(d.innerHTML+='<br><span style="font-size:13px;">'+this.arrAlbumsList[l].location+"</span>"),d.innerHTML+='<br><span style="font-size:13px;">'+this.arrAlbumsList[l].published+"</span>"),a.appendChild(d)}t.appendChild(a)}this.elPicasa.appendChild(t),this.elPicasa.innerHTML=this.elPicasa.innerHTML},ij_Picasa.prototype.getAlbumsList=function(e,t){var i;e?(t=t||this,"C00"==(i=JSON.parse(e)).error?(t.arrAlbumsList=i.content,t.displayAlbumsList()):t.elPicasa.innerHTML=i.content):ij_dojoRequest({uri:"api/api.picasa.php",content:{myAct:"getUser",userId:this.userId},callFun:this.getAlbumsList,callObj:this})},ij_Picasa.prototype.displayPhotosList=function(){var e=document.createElement("div");e.setAttribute("id","picasaAlbum"),e.setAttribute("align","center"),e.style.position="absolute",e.style.backgroundColor="#000000",e.style.width="900",e.style.zIndex="200",e.style.left=ij_getWindowWH()[0]/2-450,e.style.top=document.body.scrollTop;var t=document.createElement("div");t.setAttribute("align","left"),t.style.fontSize="13px",t.style.color="#ffffff",t.innerHTML='<a href="'+this.objAlbum.album.link+'" target="_blank"><img src="'+IJ.baseTplUri+'picasaweblogo-zh_TW.gif" width="206" height="31" title="Picasa Web Albums" alt="Picasa Web Albums" align="absmiddle" border="0" /></a>',t.innerHTML+=" [Close]",t.setAttribute("onmouseover","javascript:ij_styleCursorHand(this);"),t.setAttribute("onclick","javascript:"+this.objId+".removePhotosList();"),e.appendChild(t);var i=document.createElement("table");i.style.width="100%",i.setAttribute("border","0"),i.setAttribute("cellspacing","5"),i.setAttribute("cellpadding","0");var a,r=document.createElement("tr");(a=document.createElement("td")).setAttribute("valign","top"),a.style.width="200",a.innerHTML='<span style="font-size:15px; font-weight:bold; color:#ffffff">
1'+this.objAlbum.album.title+"</span>",a.innerHTML+=' <a href="https://picasaweb.google.com/data/feed/base/user/'+this.userId+"/albumid/"+this.objAlbum.album.id+'?kind=photo&alt=rss&hl=zh_TW"target="_blank"><span style="font-size:11px; color:#cccccc"><img src="https://www.feedburner.com/fb/images/pub/feed-icon16x16.png"width="16"height="16"title="RSS"alt="RSS"align="absmiddle"border="0"/></span></a>',this.objAlbum.album.location&&(a.innerHTML+='<br><span style="font-size:11px; color:#cccccc">'+this.objAlbum.album.location+"</span>"),this.objAlbum.album.map_pos&&(a.innerHTML+=' <a href="'+this.objAlbum.album.link+'/photo#map" target="_blank"><img src="'+IJ.baseTplUri+'mapped.gif" width="15" height="13" title="Picasa Web Albums Map" alt="Picasa Web Albums Map" align="absmiddle" border="0" /></q>'),a.innerHTML+='<hr size="1" color="#666666">',this.objAlbum.album.subtitle&&(a.innerHTML+='<span style="font-size:11px; color:#cccccc">'+this.objAlbum.album.subtitle+"</span>"),r.appendChild(a),(a=document.createElement("td")).setAttribute("valign","top"),a.setAttribute("align","center");var n=document.createElement("div");n.setAttribute("align","center"),n.style.width="100%",n.style.height="380",n.style.overflow="auto",n.setAttribute("id","picasaPhoto"),n.innerHTML=" ",a.appendChild(n),r.appendChild(a),i.appendChild(r),e.appendChild(i);var s=document.createElement("div");s.style.width="100%",s.style.height="97px",s.style.overflow="auto";var o=document.createElement("table");o.style.width="100%",o.style.height="80",o.setAttribute("border","0"),o.setAttribute("cellspacing","0"),o.setAttribute("cellpadding","0"),o.style.backgroundColor="#ffffff";var l=document.createElement("tr");(d=document.createElement("td")).innerHTML='<span style="color:#FFFFFF"> </span>',l.appendChild(d);for(var d,c=0;c<this.objAlbum.photo.length;c++){(d=document.createElement("td")).setAttribute("onmouseover","javascript:ij_styleCursorHand(this); "+this.objId+".chPhotosDetail( "+c+" );"),d.innerHTML+=this.objAlbum.photo[c].photo_img[0],l.appendChild(d),(d=document.createElement("td")).innerHTML='<span style="color:#FFFFFF"> </span>',l.appendChild(d)}o.appendChild(l),s.appendChild(o),e.appendChild(s),this.elPicasa.appendChild(e),this.elPicasa.innerHTML=this.elPicasa.innerHTML,this.chPhotosDetail(0),ij_moveDivTop("picasaAlbum",15)},ij_Picasa.prototype.removePhotosList=function(){this.objMasking&&this.objMasking.remove(),document.getElementById("picasaAlbum")&&this.elPicasa.removeChild(document.getElementById("picasaAlbum"))},ij_Picasa.prototype.getPhotosList=function(e,t,i){var a;e?(t=t||this,"C00"==(a=JSON.parse(e)).error?(t.objAlbum=a.content,t.displayPhotosList()):(alert(a.content),this.objMasking.remove())):(this.removePhotosList(),this.objMasking=new Masking("ij_masking_picasa"),this.objMasking.loader(),this.objMasking.display(),ij_dojoRequest({uri:"api/api.picasa.php",content:{myAct:"getAlbum",userId:this.userId,albumId:i},callFun:this.getPhotosList,callObj:this}))},ij_Picasa.prototype.chPhotosDetail=function(e){var t=document.getElementById("picasaPhoto");t.innerHTML="",t.innerHTML+='<div align="left" style="font-size:13px; color:#cccccc">'+this.objAlbum.photo[e].published+"</div>",this.objAlbum.photo[e].name&&(t.innerHTML+='<div align="left" style="font-size:13px; color:#cccccc">'+this.objAlbum.photo[e].name+"</div>"),t.innerHTML+='<a href="'+this.objAlbum.photo[e].link+'" target="_blank"><img src="'+this.objAlbum.photo[e].uri+'?imgmax=640" border="1"></a>'},String.prototype.ltrim=function(){return this.replace(/^[\s]*/gi,"")},String.prototype.rtrim=function(){return this.replace(/[\s]*$/gi,"")},String.prototype.trim=function(){return this.ltrim().rtrim()};var ij_dojoRequest_count=0;function ij_dojoRequest(a){function e(e,t,i){"error"==e?alert("è³æè®åé¯èª¤"):a.callFun(t,a.callObj),--ij_dojoRequest_count||ij_removeLoader()}ij_dojoRequest_count++,ij_loader(),a.mimetype||(a.mimetype="text/html"),a.method||(a.method="POST"),dojo.require("dojo.io.*"),dojo.addOnLoad(function(){dojo.io.bind({url:a.uri,mimetype:a.mimetype,method:a.method,content:a.content,formNode:dojo.byId(a.myForm),handler:e,encoding:"utf-8"})})}function ij_createRequest(){var t=!1;if(window.XMLHttpRequest)(t=new XMLHttpRequest).overrideMimeType&&t.overrideMimeType("text/xml");else if(window.ActiveXObject)try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}return t}function ij_showDiv(e,t){document.getElementById(e).style.display=t?ij_styleDisplayOn():"none"}function getWeekString(e,t){switch(e){case"zh-tw":case"zh-cn":var i=new Array("æ¥","ä¸","äº","ä¸","å","äº","å
");break;case"ja":i=new Array("æ¥","æ","ç«","æ°´","æ¨","é","å");break;default:i=new Array("S","M","T","W","T","F","S")}return i[t]}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.