var cast_ico_url=new Array(); cast_ico_url[0]=''; cast_ico_url[1]='http://dimg.dorama.info'; cast_ico_url[2]='http://newww.dorama.info'; cast_ico_url[9]='http://www.cmm.idv.tw/photos/_drama_ico'; cast_ico_url[22]='http://www.cmm.idv.tw/photos/cmm_img'; var icon_local=1; var icon_local_pf=1; var img_dir_main="/photo_box_po/"; var img_dir_drama_ico=img_dir_main+'_drama_ico/'; var img_dir_staff_ico=img_dir_main+'_staff_ico/'; function img_path(imgk,imgdir,imgname,imgop){ img0=new Image(); switch(imgk){ case 31: case 32: case 117: case 'etc': if( icon_local==0 )img0.src="http://dimg.dorama.info"; else img0.src=''; img0.src+='/photo_box_po/'+imgdir+'/'+imgname; break; case 1: if( imgop==1 ) img0.src=imgname; else{ if( icon_local==0 ){ img0.src="http://dimg.dorama.info"; img0.src+='/photo_box_po/'+imgdir+'/'+imgname; } else{ img0.src='/photo_box_po/'+imgdir+'/'+imgname; } } break; case 11: case 21: if( imgop==1 ) img0.src=imgname; else{ if( icon_local_pf==0 ){ img0.src="http://dimg.dorama.info"; img0.src+='/photo_box_po/'+imgdir+'/'+imgname; } else img0.src='/photo_box_po/'+imgdir+'/'+imgname; } break; } return img0.src; } function str_dec(text_enc){ var text_dec=''; var len_txt=text_enc.length; /* var num_ascii; var num_len; while(text_enc!=''){ num_ascii=text_enc.toString().charCodeAt(0); num_len=num_ascii.toString().length; if( num_len>=4 ){ text_dec+=text_enc.substr(0,1); text_enc=text_enc.substr(6); } else{ text_dec+=text_enc.substr(0,1); text_enc=text_enc.substr(1); } } text_enc=text_dec; */ text_dec=''; var str_ary=new Array(); var i=0; var s; var idx_rum=0; while(idx_rum6){ s=4; for(i=0;i<7;i++){ text_dec+=str_ary[s%7]; s++; } for(i=0;i<7;i++) str_ary[i]=''; i=0; } else if(idx_rum>=len_txt && i>0) for(i2=0;i21 || gp==0 ){ document.getElementById(formid).good.value=gp; } else alert('自已文章不開放推或噓'); }/* :=%3A %=%25 ?=%3F ==%3D &=%26 */