/* * market[º¸ÇèÁ¾·ù] * company[º¸Çè»ç] * security[º¸Àå³»¿ë] * gname[»óǰ¸í] */ var goodsHttp; var goodsXml; var std_age; if(MenuList.resno != ''){ std_age = MenuList.age; }else{ std_age = 30; } /* ¸Þ´ºSET */ function setMainMenu(elem){ var curId = ""; var preId = ""; if(event.keyCode != 13){ if(elem){ var splitID = elem.id.split("_"); MenuList.curMenuSeq = splitID[1]; MenuList.cur_cd = splitID[0]; curId = elem.id; }else{ //¸ÇóÀ½ load½Ã¿¡¸¸ Á¢±Ù curId = MenuList.cur_cd+"_"+MenuList.curMenuSeq; } preId = MenuList.pre_cd+"_"+MenuList.preMenuSeq; document.getElementById(curId).src = "/img/good/mini_t"+MenuList.curMenuSeq+"b.gif"; if(curId != preId) document.getElementById(preId).src = "/img/good/mini_t"+MenuList.preMenuSeq+"a.gif"; //À§Ä¡ MenuList.preMenuSeq = MenuList.curMenuSeq; MenuList.pre_cd = MenuList.cur_cd; setMenuList(); } } /* menu With list */ function setMenuList(){ var getList; var premXml; var getHttp; var url = "/goods/gallerylist/mini/getMenuList.jsp?code_ini="+MenuList.cur_cd.toUpperCase()+"&type="+MenuList.mini_type; var writeText = []; var isChecked = -1; //³ªÀÌ °è»ê Ãß°¡ 080806 by nuno if(MenuList.subSet_cd == 'D04'){ MenuList.age = 1; }else if(MenuList.subSet_cd == 'D05'){ if(MenuList.resno == '') MenuList.age = 55; }else{ MenuList.age = std_age; } if(MenuList.cur_cd != "gname"){ getHttp = XMLHttpMini.createXMLHttp(); getHttp.open("GET",url, false); getHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); getHttp.send(null); premXml = new ActiveXObject("Microsoft.XMLDOM"); premXml.async = false; premXml.loadXML(getHttp.responseTEXT); getList = premXml.selectNodes("//MENU_CODE/*"); if(getList.length>0){ writeText.push("
\n"); for(var i=0;i "+ getList[i].getAttribute('NAME') +"
\n"); if(getList[i].getAttribute('ID') == MenuList.subSet_cd) isChecked = i; } writeText.push("
\n"); if(isChecked == -1){ isChecked = 0; MenuList.subSet_cd = getList[0].getAttribute('ID'); } } writeInHTML("LIST_DIV",writeText.join("")); //»óǰ¸®½ºÆ® call getGoodsList(); }else{ writeText.push(" \n"); writeText.push(" \n"); writeText.push(" \n"); writeText.push("
\n"); writeText.push("
\n"); writeText.push(" \n"); writeText.push("
\n"); writeText.push(" \n"); writeText.push("
\n"); writeInHTML("LIST_DIV",writeText.join("")); goSearch('S'); } //checked radio button if(isChecked > -1 && document.listForm.subSet_cd[isChecked] != undefined) document.listForm.subSet_cd[isChecked].checked=true; //»óǰ¸í_°Ë»öÀ¸·Î óÀ½ µé¾î¿À´Â°æ¿ì ó¸® if(MenuList.isSearch){ document.listForm.search.value = MenuList.subSet_cd; //»óǰ¸®½ºÆ® call getGoodsList(); MenuList.isSearch = false; } } /* »óǰÀ̸§À¸·Î °Ë»ö½Ã¿¡ */ function goSearch(){ if(!goSearch.arguments[0]){ if(document.listForm.search.value == ""){ alert("°Ë»öÇÒ ³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä"); return; } } setChoiceNo(document.listForm.search.value); } /* choice subsetList */ function setChoiceNo(arg){ MenuList.subSet_cd = arg; if(MenuList.mini_type == "myzone"){ getGoodsList(); }else{ //³ªÀÌ RESET setAgeSpan(); } } function getListeMiddleF(elem){ if(elem.name == "orderBy") MenuList.orderBy= elem.value; else if(elem.name == "sex_cd") MenuList.sex_cd = elem.value; else if(elem.name == "age") MenuList.age = elem.value; getGoodsList(); } /* »óǰ¸®½ºÆ® call */ function getGoodsList(){ goodsHttp = XMLHttpMini.createXMLHttp(); var writeGoodsList = []; var partCompare = ''; var param = []; var url = "/goods/gallerylist/mini/getSubList.jsp?"; /* Á¶È¸Áß div set */ if(document.getElementById("statusPopup")){ document.getElementById("statusImg").width = 10; document.getElementById("statusPopup").style.display = 'block'; statusRefresh(); } if(MenuList.mini_type == "myzone"){ param.push("cur_cd="+MenuList.cur_cd.toUpperCase()); param.push("subSet_cd="+MenuList.subSet_cd); param.push("type="+MenuList.mini_type); }else{ param.push("cur_cd="+MenuList.cur_cd.toUpperCase()); param.push("subSet_cd="+MenuList.subSet_cd); param.push("sex_cd="+MenuList.sex_cd); param.push("age="+MenuList.age); param.push("orderBy="+MenuList.orderBy); param.push("type="+MenuList.mini_type); } goodsHttp.open("GET",url+param.join("&"), false); goodsHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); goodsHttp.send(null); goodsXml = new ActiveXObject("Microsoft.XMLDOM"); goodsXml.async = false; goodsXml.loadXML(goodsHttp.responseTEXT); goodsNode = goodsXml.selectNodes("//MARKETLIST/*"); writeGoodsList.push(" \n"); if(goodsNode.length != 0){ for(i=0;i \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); partCompare = goodsNode[i].getAttribute('compare'); for(var j=0;j \n"); if(partCompare == 'Y'){ writeGoodsList.push(" "); }else{ writeGoodsList.push(" "); } writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); writeGoodsList.push(" \n"); } } }else{ if(MenuList.mini_type == "myzone"){ writeGoodsList.push(" \n"); }else{ writeGoodsList.push(" \n"); } } writeGoodsList.push("
"+goodsNode[i].getAttribute('name')+"
\n"); if(MenuList.mini_type == "myzone"){ writeGoodsList.push(" "+ targetNode.getAttribute('good_name_s') +" \n"); }else{ writeGoodsList.push(" "+ targetNode.getAttribute('good_name_s') +" \n"); } writeGoodsList.push(" \n"); if( targetNode.getAttribute('prem_t') != ''){ writeGoodsList.push(" "+targetNode.getAttribute('prem_t')+"¿ø \n"); } else{ writeGoodsList.push("   \n"); } writeGoodsList.push("
°Ë»öÁ¶°Ç¿¡ ÇØ´çÇÏ´Â
¼³°èÇϽŠ»óǰÀÌ ¾ø½À´Ï´Ù.
°Ë»öÁ¶°Ç¿¡ ÇØ´çÇÏ´Â
ÆÇ¸ÅÁßÀÎ »óǰÀÌ ¾ø½À´Ï´Ù.
\n"); //write ¼ø¼­¾ö¼ö!!! writeInHTML("goodsCount", goodsXml.selectNodes("//goods").length+"" ); writeInHTML("GOODSLIST_DIV",writeGoodsList.join("")); //RIGHT WRITE if(MenuList.mini_type == 'myzone'){ if(goodsXml.selectNodes("//goods").length > 0) getRightPlan(); else{ if(MenuList.subSet_cd == 'ALL' && MenuList.bef_good_cd == ''){ getRightNGoods(); document.getElementById('scrAll').innerHTML = "
"; }else{ getRightNGoods(); } } }else{ if(goodsXml.selectNodes("//goods").length > 0) getRightGoods(); else getRightNGoods(); } } /* ºü¸¥°Ë»öºñ±³»ç¿ë - ¿À¸¥ÂÊ view */ function getRightGoods(group_product_cd){ var writeText = ""; var productNode = getCurrNode(group_product_cd); if(productNode){ writeText = " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "  "+productNode.getAttribute('good_name')+" \n" + "
\n" + " \n" + " \n" + " \n" + " \n" + "
\n" + " \n" + "
\n" + "
\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + " \n" + " "+productNode.getAttribute('prem_m')+"¿ø  \n" + " \n" + " "+productNode.getAttribute('prem_f')+"¿ø \n" + "
("+(MenuList.age == "-1" ? "žÆ" : MenuList.age+"¼¼")+"/"+productNode.getAttribute('ip_m')+"/"+productNode.getAttribute('pp_m')+")
\n" + "
\n" + " "+productNode.getAttribute('remark_ip')+" \n" + "
\n" + " "+productNode.getAttribute('remark_age')+" \n" + "
\n" + " "+productNode.getAttribute('remark_prod')+" \n" + "
\n" + "
\n" + "
\n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "   \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "
"+productNode.getAttribute('opinion').replaceText()+"
\n" + "
\n" + "
\n" + "
\n" + "   \n" + "
\n"; //±×·¡ÇÁ var cnt = 0; var sum_p = 0; document.getElementById("GOODS_GRAPH").style.display = "block"; //ÃʱâÈ­ document.getElementById("img_spec_point").width = 0; document.getElementById("img_cust_point").width = 0; document.getElementById("img_plan_point").width = 0; document.getElementById("img_prem_point").width = 0; document.getElementById("img_comp_point").width = 0; if(productNode.getAttribute('spec_p') != ''){ //Àü¹®°¡Æò°¡ cnt++; sum_p += eval(productNode.getAttribute('spec_p')); document.getElementById("img_spec_point").width = productNode.getAttribute('spec_p')*17; } if(productNode.getAttribute('cust_p') != ''){ //°í°´Æò°¡ cnt++; sum_p += eval(productNode.getAttribute('cust_p')); document.getElementById("img_cust_point").width = productNode.getAttribute('cust_p')*17; } if(productNode.getAttribute('plan_p') != ''){ //Àα⵵ cnt++; sum_p += eval(productNode.getAttribute('plan_p')); document.getElementById("img_plan_point").width = productNode.getAttribute('plan_p')*17; } if(productNode.getAttribute('prem_p') != ''){ //º¸Çè·á cnt++; sum_p += eval(productNode.getAttribute('prem_p')); document.getElementById("img_prem_point").width = productNode.getAttribute('prem_p')*17; } if(productNode.getAttribute('comp_p') != ''){ //º¸Çè»ç cnt++; sum_p += eval(productNode.getAttribute('comp_p')); document.getElementById("img_comp_point").width = productNode.getAttribute('comp_p')*17; } if(sum_p>0){ document.getElementById("total_point").innerHTML = (Math.round((sum_p/cnt) * 10)/10 )+' '; }else{ document.getElementById("total_point").innerHTML = ' '; } writeInHTML("GOODS_INFO",writeText); //200708 event Á¾·á½Ã »ç¿ë¾ÈÇÔ if(eventYN){ //eventArr[0] : º¸ÇèÁ¾·ù/º¸Çè»ç/º¸Àå³»¿ë/»óǰ¸í ¸Þ´º //eventArr[1] : ¼ºº° //eventArr[2] : ³ªÀÌ //eventArr[3] : »óǰÄÚµå //eventArr[4] : mission var pointPlus = false; //»óǰ¸í¸¸ ¸ÂÀ»°æ¿ì if(MenuList.afe_good_cd == eventArr[currNum][3]){ if(eventArr[currNum][0]=='99' && eventArr[currNum][1]=='99' && eventArr[currNum][2]=='99') pointPlus = true; else if(eventArr[currNum][0]=='99'&& eventArr[currNum][1]==MenuList.sex_cd && eventArr[currNum][2]==MenuList.age) pointPlus = true; else if(eventArr[currNum][0]==MenuList.curMenuSeq){ if(eventArr[currNum][1]==MenuList.sex_cd && eventArr[currNum][2]==MenuList.age) pointPlus = true; if(eventArr[currNum][1]=='txt' && eventArr[currNum][2]==MenuList.subSet_cd) pointPlus = true; if(eventArr[currNum][1]=='sel' && eventArr[currNum][2]==MenuList.subSet_cd) pointPlus = true; if(eventArr[currNum][1]=='99' && eventArr[currNum][2]=='99') pointPlus = true; } } if(pointPlus){ eventYN = false; loadEventLayer(); } } } } /* ¼±ÅÃµÈ »óǰ ¿À¸¥ÂʳëÃâ ³ëµåã±â */ function getCurrNode(arg){ var returnArg; var currNode = goodsXml.selectNodes("//part/*"); if(arg){ MenuList.bef_good_cd = MenuList.afe_good_cd; MenuList.afe_good_cd = arg; //ÀÌÀü»óǰ document.getElementById(MenuList.bef_good_cd).style.backgroundColor = ""; document.getElementById(MenuList.bef_good_cd).style.color = ""; } //ÇöÀç»óǰ document.getElementById(MenuList.afe_good_cd).style.backgroundColor = "D0DCED"; document.getElementById(MenuList.afe_good_cd).style.color = "002355"; //»óǰ Á¤º¸ for(var i=0;i \n" + " \n" + " "+productNode.getAttribute('good_name')+" \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + " º¸ÇèÁ¾·ù \n" + " "+productNode.getAttribute('secure1')+"
\n" + " º¸Çè±â°£ \n" + " "+productNode.getAttribute('secure2')+"
\n" + " ³³ÀԱⰣ \n" + " "+productNode.getAttribute('secure3')+"
\n" + " ³³ÀÔÁÖ±â \n" + " "+productNode.getAttribute('secure4')+"
\n" + " º¸Çè´ë»óÀÚ \n" + " "+productNode.getAttribute('insu_name')+","+productNode.getAttribute('insu_age')+"¼¼,"+productNode.getAttribute('insu_soung')+"
\n" + " \n" + " \n" + " \n" + " \n"; writeInHTML("GOODS_INFO",writeText); //º¸Àå³»¿ë get rightHR = XMLHttpMini.createXMLHttp(); rightHR.open('GET', '/goods/gallerylist/mini/my_right_detail.jsp?plan_no='+productNode.getAttribute('plan_no'), true); rightHR.onreadystatechange = showRightButtom; rightHR.send(null); } } function showRightButtom(){ var thidDiv = document.getElementById("GOODS_TOP"); if(rightHR.readyState == 4){ if(rightHR.status == 200){ thidDiv.innerHTML = rightHR.responseText; document.getElementById("GOODS_GRAPH").style.display = "block"; document.getElementById("GOODS_BUTTON").style.display = "block"; } } } //200708 event Á¾·á½Ã »ç¿ë¾ÈÇÔ[S] var httpRequest = null; function loadEventLayer(){ httpRequest = XMLHttpMini.createXMLHttp(); httpRequest.open('GET', '/event/e070701/joinEvent.jsp', true); httpRequest.onreadystatechange = showEventLayer; httpRequest.send(null); } function showEventLayer(){ if(httpRequest.readyState == 4){ if(httpRequest.status == 200){ var layerHtml = httpRequest.responseText; var posLayer = document.getElementById("eventLayerPos"); posLayer.innerHTML = httpRequest.responseText; ivDelCookie(); } } } function goEventMain(){ opener.location.href = '/event/e070701/e070701_01.jsp'; window.close(); } //200708 event Á¾·á½Ã »ç¿ë¾ÈÇÔ[E] /* °Ë»ö³»¿ëÀÌ ¾øÀ»½Ã function */ function getRightNGoods(){ var writeText; var rightHR; writeText = " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + " \n" + "
\n" + "   \n" + "
\n" + " \n" + "
\n"; document.getElementById("GOODS_GRAPH").style.display = "none"; if(document.getElementById("GOODS_BUTTON")) document.getElementById("GOODS_BUTTON").style.display = "none"; writeInHTML("GOODS_INFO",writeText); } //³ªÀÌ select set function setAgeSpan(){ var writeText = []; var start_age; var end_age; var ageReSet = true; MenuList.age = std_age; if("market".indexOf(MenuList.cur_cd) != -1){ if(MenuList.subSet_cd == 'D04'){ start_age = -1; end_age = 15; MenuList.age = 1; }else if(MenuList.subSet_cd == 'D09'){ //ÀúÃà,žƴ ³ªÀ̰¡ ¾î¸±¼ö Àֱ⠶§¹®¿¡ ³ªÀÌ ÀüºÎ³ëÃâ start_age = -1; end_age = 70; }else if(MenuList.subSet_cd == 'D05'){ start_age = 50; end_age = 70; if(MenuList.resno == '') MenuList.age = 55; }else{ start_age = 15; end_age = 70; } }else{ start_age = -1; end_age = 70; } writeText.push(""); writeInHTML("ageSpan",writeText.join("")); //»óǰ¸®½ºÆ® call getGoodsList(); } /**/ function XMLHttpMini(){} XMLHttpMini.createXMLHttp = function(){ if(window.ActiveXObject){ return new ActiveXObject("Microsoft.XMLHTTP"); }else{ return new XMLHttpRequest(); } } /* check boxÀÇ Á¸ÀçÀ¯¹«È®ÀÎ*/ function chkCheckBox(elem, msg){ if( elem == null || elem == undefined){ alert(msg+'ÇÏ½Ç »óǰÀ» ¼±ÅÃÇÏ¿© ÁֽʽÿÀ'); return false; } return true; } /* ºñ±³ÇÏ·¯ °¡±â */ function comparePop(){ var beforCD = ""; var splitID; var alMessg; var insuBfArr; var insuCrArr; var myForm = document.compareForm; var compare_yn = myForm.compareList; var total = 0; var param = ""; var gv = ""; if(!chkCheckBox(compare_yn, 'ºñ±³')) return; for(var i=0;i 1){ alMessg = "MYº¸Çè ¼±Åûóǰºñ±³´Â °í°´´ÔÀÌ ¼³°èÇϽŠ»óǰÀÇ ÇǺ¸ÇèÀÚ°¡ 1¸íÀÏ °æ¿ì¸¸ °¡´ÉÇÕ´Ï´Ù. \n "+insuCrArr[3]+"´Â ÇǺ¸ÇèÀÚ°¡ 1¸íÀÌ»óÀÔ´Ï´Ù. ºñ±³ÇÏ½Ç »óǰÀ» ´Ù½Ã ¼±ÅÃÇØ Áֽʽÿä."; break; } */ //ÇǺ¸ÀÚÀ̸§/¼ºº°/³ªÀÌ µ¿ÀÏ¿©ºÎ check if(insuBfArr && (insuBfArr[0] != insuCrArr[0] || insuBfArr[1] != insuCrArr[1] || insuBfArr[2] != insuCrArr[2]) ){ alMessg = "µ¿ÀÏÀÎ(¼ºº°/³ªÀÌ)ÀÌ ¾Æ´Ñ°æ¿ì ±âº»Á¶°ÇÀÌ ´Ù¸£¹Ç·Î »óǰºñ±³°¡ ºÒ°¡´ÉÇÕ´Ï´Ù. \n ºñ±³ÇÏ½Ç »óǰÀ» ´Ù½Ã ¼±ÅÃÇØ Áֽʽÿä."; break; } }else{ alMessg = "Á¤º¸Á¶È¸¿¡ ½ÇÆÐÇß½À´Ï´Ù. Àá½ÃÈÄ ´Ù½Ã ½ÃµµÇØ Áֽʽÿä."; break; } //ÀÌÀü»óǰ insuBfArr = insuCrArr; } //ÀÌÀü part_cd beforCD = splitID[0]; } } if(!alMessg && (total < 2 || total > 3)) alMessg = "¼±Åûóǰºñ±³´Â »óǰ 2~3°¡Áö¸¦ ¼±ÅÃÇÏ¼Å¾ß ÇÕ´Ï´Ù."; if(alMessg){ alert(alMessg); return; } // ¿¬±Ýº¸Çè ¼³°èºñ±³´Â ÁغñÁß 081107 by nuno. if(MenuList.mini_type == "myzone" && ( beforCD == 'P14' || beforCD == 'P15')) {alert('ÁغñÁßÀÔ´Ï´Ù.'); return;} param += "&header_yn=N"+gv+"&market_cd="+beforCD; if(MenuList.mini_type == "myzone"){ param += "&compare_type=PLAN&getAgeCd="+insuCrArr[1]+"&getSexCd="+insuCrArr[2]; }else{ param += "&getAgeCd="+MenuList.age+"&getSexCd="+MenuList.sex_cd; } // ¿¬±Ýº¸Çè ½ÃÀåÀÏ °æ¿ì(º¯¾×Á¦¿Ü) »óǰ ºñ±³ÆË¾÷ÀÌ ´Ù¸§. 081107 by nuno. if(MenuList.subSet_cd == 'D08') ivOpnePop('/goods/anty_compare/getPage.jsp?'+param,'iv_compare','720','700','yes'); else ivOpnePop('/goods/compare/getPage.jsp?'+param,'iv_compare','720','700','yes'); } /* open popup */ function ivOpnePop(path, popName , w, h, scroll) { var mytop = (screen.height)?(screen.height-h)/2:100; var myleft = 0; window.open(path,popName ,"width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+scroll+",resizable=no" ) ; } /* innerHTML SET */ function writeInHTML(divName, text){ eval(divName).innerHTML = ''; eval(divName).innerHTML = text; } function goPage(idx, target){ var pageUrl = '/goods/comm/goods_'+idx+'.jsp?group_product_cd='+MenuList.afe_good_cd; if(MenuList.mini_type == "myzone") pageUrl = '/goods/comm/storePlan/forwardGoods.jsp?plan_no='+MenuList.afe_good_cd; if(target != ''){ window.open(pageUrl); }else{ try { window.opener.top.location.href=pageUrl; }catch(e){ window.open(pageUrl); } } } /* myzoneºñ±³ »óǰÀ̸§ mouseover */ function viewInsuInfo(plan_no, flag){ var thisNode = goodsXml.selectNodes("//goods[@plan_no='"+plan_no+"']"); var insuArr = []; if(thisNode.length > 0){ insuArr[0] = thisNode[0].getAttribute('insu_name'); //À̸§ insuArr[1] = thisNode[0].getAttribute('insu_age'); //³ªÀÌ insuArr[2] = thisNode[0].getAttribute('insu_soung'); //¼ºº° insuArr[3] = thisNode[0].getAttribute('goods_name'); //»óǰ¸í } return insuArr; } /* "/ "¸¦ ", "·Î º¯È¯ */ String.prototype.replaceText = function() { reText = this.replace(/(\[)/g,"<"); reText = reText.replace(/(\])/g,">"); reText = reText.replace(/(\#)/g,"&"); return reText; } /* Á¶È¸Áß div */ function statusRefresh(){ document.getElementById("statusImg").width += 50; if(document.getElementById("statusImg").width < 250){ setTimeout('statusRefresh()', 50); }else{ document.getElementById("statusPopup").style.display = 'none' } } /* dz¼±µµ¿ò¸» */ function viewHelp(text){ if(document.all('writeText') != null && document.all('writeText') != undefined && text != ''){ var barron = document.all['showText']; if( barron.style.visibility == "hidden"){ document.all('writeText').innerHTML = text; barron.style.pixelLeft = event.clientX + document.body.scrollLeft-10; barron.style.pixelTop = event.clientY + document.body.scrollTop+10; barron.style.visibility = "visible"; }else{ barron.style.visibility = "hidden"; } } } function goFirst(){ document.location.href = "/goods/gallerylist/mini/main.jsp"; }