function CursorToHand(){ document.body.style.cursor="pointer"; } function CursorToNormal(){ document.body.style.cursor=""; } function ClickNewsCls(id, n, t){ var obj; for(var i=0; i < t; i++){ obj = document.getElementById("NewsCls"+i); if( obj ){ if( i == n ){ obj.style.backgroundImage = "URL(http://www.15014.com/images/main/news_cls_ck.jpg)"; }else obj.style.backgroundImage = ""; }else{ break; } } var strAjax = "ajax/main_news.php?CID=" + id; _xmlLoader(document.body, get_news_cls, strAjax, false); } function ClickNewsPg(id, p){ var strAjax = "ajax/main_news.php?&CID=" + id + "&pn=" + p; _xmlLoader(document.body, get_news_cls, strAjax, false); } function get_news_cls(xmlObj){ var news,pgcount; news = AJAX_getHTMLSource(xmlObj, "NewsTable"); pgcount = AJAX_getHTMLSource(xmlObj, "PageTable"); //pgcount = pgcount.replace(/&/g,"&"); var area = document.getElementById("NewsArea"); area.innerHTML = news; var pg = document.getElementById("NewsPG"); pg.innerHTML = pgcount; } function SetNowTop10(n, id){ var obj1, obj2, obj3; for(var i=0; i < TOP10_CT; i++){ obj1 = document.getElementById('T10IMG1' + i); obj2 = document.getElementById('T10IMG2' + i); obj3 = document.getElementById('T10IMG3' + i); if( obj1 && obj2 && obj3 ){ if( n == i ){ obj1.src = "http://www.15014.com/images/sell_ct_in1.jpg"; obj2.style.backgroundImage = "URL(http://www.15014.com/images/sell_ct_in2.jpg)"; obj2.className = "top10_t1"; obj3.src = "http://www.15014.com/images/sell_ct_in3.jpg"; }else{ obj1.src = "http://www.15014.com/images/sell_ct_out1.jpg"; obj2.style.backgroundImage = "URL(http://www.15014.com/images/sell_ct_out2.jpg)"; obj2.className = "top10_t2"; obj3.src = "http://www.15014.com/images/sell_ct_out3.jpg"; } } } var strAjax = "http://www.15014.com/ajax/main_top10.php?AID=" + id; _xmlLoader(document.body, get_top10_list, strAjax, false); } function get_top10_list(xmlObj){ var area = document.getElementById("Top10Area"); var list = AJAX_getHTMLSource(xmlObj, "Top10List"); //list = list.replace(/&/g,"&"); area.innerHTML = list; } function GetWeekSellData(n){ var strAjax = "http://www.15014.com/ajax/main_week.php?nW=" + n; _xmlLoader(document.body, get_week_product, strAjax, false); } function GetWeekSellAllData(n, t){ var strAjax = "http://www.15014.com/ajax/game_week.php?nW=" + n + "&time=" + t; _xmlLoader(document.body, get_week_product, strAjax, false); } function get_week_product(xmlObj){ var w, txt, pgcount; w = AJAX_getHTMLSource(xmlObj, "WEEKPROD"); txt = xmlObj[0].getElementsByTagName("THISWEEK")[0].firstChild.nodeValue; var area = document.getElementById("WeekArea"); area.innerHTML = w; var round = document.getElementById("WeekRound"); round.innerHTML = txt; }