function jb_doLinks(text) { if( !text ) return text; text = text.replace(/((https?\:\/\/|ftp\:\/\/)|(www\.))(\S+)(\w{2,4})(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/gi,function(url){ nice = url; if( url.match('^https?:\/\/') ) { nice = nice.replace(/^https?:\/\//i,'') } else url = 'http://'+url; return ''+ nice.replace(/^www./i,'') +''; }); return text; } function jb_doSmileys(text) { text = text.replace(':)', ''); text = text.replace(':-)', ''); text = text.replace(':(', ''); text = text.replace(':-(', ''); text = text.replace(';)', ''); text = text.replace(';-)', ''); text = text.replace(':\')', ''); text = text.replace('B-)', ''); text = text.replace('B)', ''); text = text.replace(':o', ''); text = text.replace(':O', ''); text = text.replace(':-o', ''); text = text.replace(':-O', ''); text = text.replace(':D', ''); text = text.replace(':-D', ''); return text; } function jb_doReplace(text) { text = jb_doLinks(text); text = jb_doSmileys(text); return text; } var trans_me = 'saya'; var jb_says = 'mengatakan...'; var jb_offlinemsg = 'User Online.'; var jb_awaymsg = 'User is Offline/Away.'; var jb_abs_link = 'http://www.djpp.info/'; var chat_status_array = new Array(); chat_status_array.push('AVAILABLE_TEXT'); chat_status_array.push('AWAY_TEXT'); chat_status_array.push('INVISBLE_TEXT'); function showchatdiv(obj1) { jQuery("#ch_box_status").toggle(); } if (typeof jQuery == 'undefined') { document.write(''); }