PageSourceSearch

https://www.kelijia.tw/kelijia/javascripts/ij-ajax/_ij_package.js

js kelijia.tw collected 2026-10-08 11:10:53 UTC 85,915 bytes, 1 lines download raw bytes

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=["&nbsp;|","|&nbsp;"];0<l?c[0]="&nbsp;&lt;":l<o-1&&(c[1]="&gt;&nbsp;");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("&nbsp;%W, %m/%d"),s.appendChild(l),(l=document.createElement("td")).align="right",l.innerHTML="[X]&nbsp;",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="&nbsp;"+t.startDate.getClosedIntervalTitle(t.endDate);0==t.isAllDay&&(m+="&nbsp;&nbsp;&nbsp;&nbsp;"+t.startTime+" ~ "+t.endTime),h.innerHTML=m,c.appendChild(h),(h=document.createElement("td")).align="right",h.innerHTML="[X]&nbsp;",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="&nbsp;&nbsp;"+t.place,h.appendChild(l)),null!=this.editUri&&((l=document.createElement("span")).innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;",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+="&nbsp;[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+='&nbsp;<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+='&nbsp;<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="&nbsp;",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">&nbsp;&nbsp;</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">&nbsp;&nbsp;</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.