CATEGORY MENU
¿µ±¤ ¹ý¼ºÆ÷ °íÃßÀå±¼ºñ 500g 2±¸ / ¼±¹°¿ë ¸ñÇÔ
");
}
function imgpreview2(id,uid)
{
var SmcomsPopupCheck = getPopUpFlag(window.open('','iwin','left=0,top=0,width=100,height=100,scrollbars=yes,status=yes'));
SmcomsPopupCheck.document.write(""+jn+"
"+g_cn : g_q += "";
if(tpage < lnum || tpage < jn) { g_q += g_n1; }
else{var np = jn; g_q += ""; }
// g_q += "";
document.write(g_q);
}
function getDateFormat(date , type)
{
var ck;
var rtstr = "";
var j = 0;
for(var i = 0; i < type.length; i++)
{
if(type.substring(i,i+1) == 'x')
{
rtstr += date.substring(j,j+1);
}
else {
j--;
rtstr += type.substring(i,i+1);
}
j++;
}
document.write(rtstr);
}
function getJosa(str, tail)
{
strTemp = str.substr(str.length - 1);
return ((strTemp.charCodeAt(0) - 16) % 28 != 0) ? str + tail.substr(0, 1) : str + tail.substr(1, 1);
}
//ŸÀÔºñ±³ (ºñ±³¹®ÀÚ , ºñ±³Çü½Ä ; ex: getTypeCheck(string , "1234567890") )
function getTypeCheck (s, spc)
{
var i;
for(i=0; i< s.length; i++)
{
if (spc.indexOf(s.substring(i, i+1)) < 0)
{
return false;
}
}
return true;
}
//ÄÞ¸¶»ðÀÔ (number_format)
function commaSplit(srcNumber)
{
var txtNumber = '' + srcNumber;
var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
var arrNumber = txtNumber.split('.');
arrNumber[0] += '.';
do {
arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
}
while (rxSplit.test(arrNumber[0]));
if (arrNumber.length > 1) {
return arrNumber.join('');
}
else {
return arrNumber[0].split('.')[0];
}
}
//ÄÞ¸¶Á¦°Å
function filterNum(str)
{
return str.replace(/^\$|,/g, "");
}
//¼ýÀÚüũ
function commaInsert(field)
{
if (!getTypeCheck(field.value , "0123456789,"))
{
alert('¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ');
field.value = '';
field.focus();
return false;
}
field.value = commaSplit(filterNum(field.value));
}
|