/* [Destoon B2B System] Copyright (c) 2008-2016 www.destoon.com This is NOT a freeware, use is subject to license.txt */ function Print(i) {if(isIE) {window.print();} else {var i = i ? i : 'content'; var w = window.open('','',''); w.opener = null; w.document.write('
'+Dd(i).innerHTML+'
'); w.window.print();}} function addFav(t) {document.write(''+t+'');} function SendPage() { var htm = '
'; htm += ''; htm += ''; htm += ''; htm += '
'; $('#destoon_space').html(htm); Dd('dsendmail').submit(); } function SendFav() { var htm = '
'; htm += ''; htm += ''; htm += ''; htm += '
'; $('#destoon_space').html(htm); Dd('dfavorite').submit(); } function SendReport(c) { var c = c ? c : ($('#title').length > 0 ? $('#title').html() : document.title)+'\n'+window.location.href; var htm = '
'; htm += ''; htm += '
'; $('#destoon_space').html(htm); Dd('dreport').submit(); } function Dsearch(i) { if(Dd('destoon_kw').value.length < 1 || Dd('destoon_kw').value == L['keyword_message']) { Dd('destoon_kw').value = '';window.setTimeout(function(){Dd('destoon_kw').value = L['keyword_message'];}, 500); return false; } if(i && Dd('destoon_search').action.indexOf('/api/') == -1) {$('#destoon_moduleid').remove();$('#destoon_spread').remove();} return true; } function Dsearch_adv() {Go(Dd('destoon_search').action.indexOf('/api/') != -1 ? DTPath+'api/search.php?moduleid='+Dd('destoon_moduleid').value : Dd('destoon_search').action);} function Dsearch_top() {if(Dsearch(0)){Dd('destoon_search').action = DTPath+'api/search.php';Dd('destoon_spread').value=1;Dd('destoon_search').submit();}} function View(s) {window.open(DTPath+'api/view.php?img='+s);} function setModule(i, n) {Dd('destoon_search').action = DTPath+'api/search.php';Dd('destoon_moduleid').value = i;searchid = i;Dd('destoon_select').value = n;$('#search_module').fadeOut('fast');Dd('destoon_kw').focus();} function setTip(w) {Dh('search_tips'); Dd('destoon_kw').value = w; Dd('destoon_search').submit();} var tip_word = ''; function STip(w) { if(w.length < 2) {Dd('search_tips').innerHTML = ''; Dh('search_tips'); return;} if(w == tip_word) {return;} else {tip_word = w;} makeRequest('action=tipword&mid='+searchid+'&word='+w, AJPath, '_STip'); } function _STip() { if(xmlHttp.readyState==4 && xmlHttp.status==200) { if(xmlHttp.responseText) { Ds('search_tips'); Dd('search_tips').innerHTML = xmlHttp.responseText + ''; } else { Dd('search_tips').innerHTML = ''; Dh('search_tips'); } } } function SCTip(k) { var o = Dd('search_tips'); if(o.style.display == 'none') { if(o.innerHTML != '') Ds('search_tips'); } else { if(k == 13) {Dd('destoon_search').submit(); return;} Dd('destoon_kw').blur(); var d = o.getElementsByTagName('div'); var l = d.length; var n, p; var c = w = -2; for(var i=0; i= 0) d[c].className = 'search_t_div_1'; if(w >= 0) d[w].className = 'search_t_div_2'; if(w >= 0) {var r = d[w].innerHTML.split('>'); Dd('destoon_kw').value = r[2];} else {Dd('destoon_kw').value = tip_word;} } } function user_login() { if(Dd('user_name').value.length < 2) {Dd('user_name').focus(); return false;} if(Dd('user_pass').value == 'password' || Dd('user_pass').value.length < 6) {Dd('user_pass').focus(); return false;} } function show_answer(i) {document.write('');} function show_task(s) {document.write('