var scQuality = new Array(); function BuildWriteGoodsR(codeSyoId, styleQ){ //2014-04-24 tanaka function ee(msg){ if( send_error_mail ){ send_error_mail(msg+",codeSyoId="+codeSyoId+",styleQ="+styleQ, "recommendedbook.js.php error!!"); } return ""; } if( typeof codeSyoId === "undefined" ) return ee("codeSyoId is undefined"); if( typeof styleQ === "undefined" ) return ee("styleQ is undefined"); if( typeof scQuality[codeSyoId] === "undefined" ) return ee("scQuality[codeSyoId] is undefined"); if( typeof scQuality[codeSyoId][styleQ] === "undefined" ) return ee("scQuality[codeSyoId][styleQ] is undefined"); var lstr; switch(styleQ){ case 0: // HNT_TITEL lstr = scQuality[codeSyoId][0]; break; case 1: // HNT_PRICE lstr = scQuality[codeSyoId][1]; break; case 2: // HNT_BUTTON lstr = scQuality[codeSyoId][2]; break; case 3: // HNT_BUTTON2 lstr = scQuality[codeSyoId][3]; break; case 4: // HNT_BUTTON2 lstr = scQuality[codeSyoId][4]; break; default: lstr = ""; } return lstr; }