/**
*
* ¹®ÀÚ¿ Valid °Ë»çó¸®
* StringÀÌ "" À̳ª nullÀÌ¸é ¹«Á¶°Ç false
* ¸¸¾à space ÀμöÀÇ °ªÀÌ trueÀ̸é
* StringÀÌ "" À̳ª nullÀÌ ¾Æ´Ò¶§ space°¡ ÀÖ¾î¾ß¸¸ true
* ¸¸¾à space ÀμöÀÇ °ªÀÌ falseÀ̸é
* stringÀÌ "" À̳ª nullÀÌ ¾Æ´Ò¶§ space°¡ ¾Æ´Ñ ±ÛÀÚ°¡ ÀÖ¾î¾ß¸¸ true
*
* @param str ¹®ÀÚ¿
* @param space spaceÇã¿ë ¿©ºÎ (true, false)
* @return boolean
*/
function checkValid(str, space){
var retvalue = false;
for (var i=0; i
* field Empty ¹× °ø¹é ó¸®
* error_msg°¡ ""À̸é alert¿Í focusingÀ» ÇÏÁö ¾Ê´Â´Ù
*
* @param field form.element
* @param error_msg ¿¡·¯ Message
* @return boolean
*/
function isEmpty(field, error_msg)
{
// error_msg°¡ ""À̸é alert¿Í focusingÀ» ÇÏÁö ¾Ê´Â´Ù
if(error_msg == "") {
if(!checkValid(field.value, false)) {
return true;
} else {
return false;
}
} else {
if(!checkValid(field.value, false)) {
alert(error_msg);
field.focus() ;
return true;
} else {
return false;
}
}
}
/**
*
* Çʵå(String) ±æÀ̸¦ °¡Á®¿Â´Ù
* ÇÑ±Û ÇѱÛÀÚ¸¦ 2byte·Î ÀνÄÇÏ¿©, IEµç Netscapeµç Á¦´ë·Î byte±æÀ̸¦ ±¸ÇØ ÁÝ´Ï´Ù.
*
* @param field form.element
* @return int elementÀÇ value byte Å©±â
*/
function getByteLength(field){
var len = 0;
var s = field.value;
if ( s == null ) return 0;
for(var i=0;i 1 && field[0].type == "radio"); // greater than 1
var isChkbox = (field.length > 1 && field[0].type == "checkbox"); // greater than 1
if(isSelect) {
if(field.selectedIndex == -1)
bEmpty = true;
}
else if(isRadioS || isChkboxS) {
bEmpty = !(field.checked);
}
else if(isRadio || isChkbox) {
var bTmp = true;
for(i = 0; i < field.length; i++) {
if(field[i].checked == true) {
bTmp = false;
}
}
if(bTmp) bEmpty = true;
}
else if(field.value == "") {
bEmpty = true;
}
if(bEmpty) {
alert(error_msg);
if(isRadio) field[0].focus();
else field.focus();
if(!isRadio && !isSelect) field.select();
return true;
} else {
return false;
}
}
function isEmptySelect(field, error_msg)
{
if(field == null) {
alert("[isEmpty] There is no such field. Check it."); return true;
}
var bEmpty = false;
var isSelect = (field.type == "select-one");
var isRadio = (field.length > 1 && field[0].type == "radio"); // greater than 1
if(isSelect) {
if(field.selectedIndex < 1)
bEmpty = true;
}
if(bEmpty) {
alert(error_msg);
if(!isRadio && !isSelect) field.select();
return true;
} else {
return false;
}
}
/**
* Checks the field has a numeric value.
*
* Return : true if the field has a numeric value
* Argument :
* + field : the form field
* + error_msg : an error message
*/
function isNumeric(field, error_msg)
{
return checkNumber(field, error_msg);
}
/**
* Checks the string is alphanumeric.
*
* Return : true if the string is alphanumeric
* Argument :
* + str : the string
*/
function isAlphaNumeric(str)
{
var check = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$^*()_\+-=||{}[]:;<>?/\\";
for(i = 0; i < str.length; i++) {
var ch = str.charAt(i);
for(j = 0; j < check.length; j++)
if(ch == check.charAt(j))
break;
if(j == check.length) return false;
}
return true;
}
/**
* Checks the string is alphabet.
*
* Return : true if the string is alphabet
* Argument :
* + str : the string
*/
function isAlpha(str)
{
var check = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
for(i = 0; i < str.length; i++) {
ch = str.charAt(i);
for(j = 0; j < check.length; j++)
if(ch == check.charAt(j)) break;
if(j == check.length) return false;
}
return true;
}
/**
* Checks the value is positive.
*
* Return : true if the value is positive
* Argument :
* + val : the value
*/
function isPositive(val)
{
if(parseFloat(val) > 0)
return true;
else
return false;
}
/**
* Checks the field has a numeric value.
*
* Return : true if the field has a numeric value
* Argument :
* + field : the form field
* + error_msg : an error message
*/
function checkNumber(field, error_msg)
{
if(isNaN(field.value)) {
alert(error_msg);
field.focus();
field.select();
return false;
} else {
return true;
}
}
/**
* Checks the item by its value.
*
* Return :
* Argument :
* + field : the field (the radio and check box)
* + value : the value
*/
function check(field, value)
{
for(i = 0; i < field.length; i++) {
if(value == field[i].value)
field[i].checked = true;
}
}
/**
* Checks all items in the radio and check box.
*
* Return :
* Argument :
* + field : the field (the radio and check box)
*/
function checkAll(field)
{
for(i = 0; i < field.length; i++) {
field[i].checked = true;
}
}
/**
* Unchecks the item by its value.
*
* Return :
* Argument :
* + field : the field (the radio and check box)
* + value : the value
*/
function uncheck(field, value)
{
for(i = 0; i < field.length; i++) {
if(value == field[i].value)
field[i].checked = false;
}
}
/**
* Unchecks all items in the radio and check box.
*
* Return :
* Argument :
* + field : the field (the radio and check box)
*/
function uncheckAll(field)
{
for(i = 0; i < field.length; i++) {
field[i].checked = false;
}
}
/**
* Returns the selected value in the radio and check box. Returns the first selected value in the case of check box.
*
* Return : the selected value
* Argument :
* + field : the field (the radio and check box)
*/
function getSelectedValue(field)
{
for(i = 0; i < field.length; i++) {
if(field[i].checked == true)
return field[i].value;
}
return null;
}
/**
* Returns the selected values in the radio and check box.
*
* Return : the selected values
* Argument :
* + field : the field (the radio and check box)
*/
function getSelectedValues(field)
{
var ret = null;
var cnt = 0;
for(i = 0; i < field.length; i++) {
if(field[i].checked == true) {
if(ret == null)
ret = new Array();
ret[cnt++] = field[i].value;
}
}
return ret;
}
/**
* Formats the value in the format of currency.
*
* Return : the value in the format of currency ("1,234,567")
* Argument :
* + val : the value ("1234567")
*/
function formatCurrency(val)
{
var modulus = val.length % 3;
var currencyStr = val.substr(0, modulus);
for(i = modulus; i < val.length; i = i + 3) {
if(currencyStr != "")
currencyStr += ",";
currencyStr += val.substr(i, 3);
}
return currencyStr;
}
/**
* Displays a message according to its type.
*
* Return :
* Argument :
* + msg : a message
* + msgtype : the message type ::= 2 (alert) | 3 (confirm)
*/
function msg(msg, msgtype)
{
if(msgtype == 2) // alert
return alert(msg);
else if(msgtype == 3) // confirm
return confirm(msg);
else
return msg;
}
/**
* Refreshes the current location.
*
* Return :
* Argument :
* + win : a window object
*/
function refresh(win)
{
// The argument to the location.reload function determines if the browser should retrieve the document from the web-server.
win.location.reload(true);
}
/**
* Closes the window.
*
* Return :
* Argument :
* + isConfirm : whether or not to request a confirmation
*/
function closeWindow(isConfirm)
{
var isClose = true;
if(isConfirm == true) {
isClose = confirm(MSG_WIN_CLOSE);
}
if(isClose)
top.close(); // window.close() doesn't operate in frame
}
/**
* Opens a new window.
*
* Return :
* Argument :
* + file : the file to be displayed
* + width : the width of the new window
* + height : the height of the new window
*/
function openWindow(file, width, height)
{
alert(width);
alert(height);
var win = window.open(file, '', "width=" + width + ",height=" + height);
}
/**
* Opens a new window given style.
*
* Return :
* Argument :
* + file : the file to be displayed
* + style : the style of the new window
*/
function openWindowWithStyle(file, style)
{
var win = window.open(file, "", style);
}
/**
* Opens a new pop-up window.
*
* Return :
* Argument :
* + file : the file to be displayed
* + width : the width of the new window
* + height : the height of the new window
*/
function openPopupWindow(file, width, height)
{
var win = window.open(file, "", "menubar=no,scrollbars=no,resizable=no,width=" + width + ",height=" + height);
}
/**
* Opens a new modal dialog window. (above IE 4.0)
*
* Return : a return value
* Argument :
* + file : the file to be displayed
* + width : the width of the new window
* + height : the height of the new window
*/
function openModalDialog(file, width, height)
{
return window.showModalDialog(file, null, "dialogWidth: " + width + "px; dialogHeight: " + height + "px; resizable: no; scroll: no;");
}
/**
* Opens a new modal dialog window given style. (above IE 4.0)
*
* Return : a return value
* Argument :
* + file : the file to be displayed
* + style : the style of the new window
*/
function openModalDialogWithStyle(file, style)
{
return window.showModalDialog(file, null, style);
}
/**
* Resets the form.
*
* Return :
* Argument :
* + frm : the form object
*/
function reset(frm)
{
frm.reset();
}
/**
* Returns the current date.
*
* Return : the current date
* Argument :
* + delim : the delimiter, if "-", yyyy-mm-dd
*/
function getDate(delim)
{
var today = new Date();
var ret = today.getYear() + delim;
var month = today.getMonth() + 1;
if(month < 10)
ret += "0" + month + delim;
else
ret += month + delim;
var date = today.getDate();
if(date < 10)
ret += "0" + date;
else
ret += date;
return ret;
}
/**
* Returns the current date in full format.
*
* Return : the current date in full format
* Argument :
*/
function getFullDate()
{
return new Date().toLocaleString();
}
/**
* Checks the date.
*
* Return : true if the string is a date format
* Argument :
* + str : the string (yyyymmdd, yyyy/mm/dd, yyyy-mm-dd)
*/
function isDate(str)
{
var arrDate;
if(str == "") return false;
if(str.indexOf("-") != -1) arrDate = str.split("-");
else if(str.indexOf("/") != -1) arrDate = str.split("/");
else {
if(str.length != 8) return false;
str = str.substring(0, 4) + "/" + str.substring(4, 6) + "/" + str.substring(6, 8);
arrDate = str.split("/");
}
if(arrDate.length != 3) return false;
var chkDate = new Date(arrDate[0] + "/" + arrDate[1] + "/" + arrDate[2]);
if(isNaN(chkDate) == true || (arrDate[1] != chkDate.getMonth() + 1 || arrDate[2] != chkDate.getDate()))
return false;
return true;
}
String.prototype.reverse = function() {
var s = "";
var i = this.length;
while (i>0) {
s += this.substring(i-1,i);
i--;
}
return s;
}
// this trim was suggested by Tobias Hinnerup
String.prototype.trim = function() {
return(this.replace(/^\s+/,'').replace(/\s+$/,''));
}
String.prototype.toInt = function() {
var a = new Array();
for (var i = 0; i < this.length; i++) {
a[i] = this.charCodeAt(i);
}
return a;
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
function checkSpace( str )
{
if(str.search(/\s/) != -1){
return true;
} else {
return false;
}
}
//°ø¹éÁ¦°Å ÇÔ¼ö
function java_both_trim(a) {
var search = 0
while ( a.charAt(search) == " ") {
search = search + 1
}
a = a.substring(search, (a.length))
search = a.length - 1
while (a.charAt(search) ==" "){
search = search - 1
}
return a.substring(0, search + 1)
}
//null°ª üũ
function f_nul_chk(obj,lbl){
if( java_both_trim(obj.value) == '' ){
alert(lbl+'ÀÔ·ÂÇØÁֽʽÿä');
obj.focus();
return true;
}
return false;
}
// ±âȹÀü°¡±â
function goShop(obj)
{
var isSelect = (obj.type == "select-one");
var value = (isSelect) ? obj.options[obj.selectedIndex].value : obj;
if(value!='')
window.location.href = "/shopping/specialShopList.jsp?shop_id=" + value;
}
// iframe resize function
function reSize(frm,frmNm,orgHeightSize)
{
var objBody = frm.document.body;
var objFrame = document.all[frmNm];
var chgHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
if( orgHeightSize > 0 && orgHeightSize > chgHeight ){
objFrame.style.height = orgHeightSize;
}else{
objFrame.style.height = chgHeight;
}
objFrame.style.width = '100%';
}
// MS»çÀÇ IE Patch¿¡ µû¸¥ ¼öÁ¤
function viewMovie(src,width,height,wmode)
{
document.write('');
}
//images popup
function viewPic(img){
img1= new Image();
img1.src=(img);
call(img);
}
function call(img){
if((img1.width!=0)&&(img1.height!=0)){
viewImg(img);
}else{
funzione="call('"+img+"')";
intervallo=setTimeout(funzione,20);
}
}
function viewImg(img){
WinW=img1.width+20;
WinH=img1.height+20;
LeftPosition =0 ;
TopPosition =0;
options = "";
if(img1.width > 990 || img1.height > 660){
WinH = 660;
WinW = 990;
options = "height="+WinH+",width="+WinW+",scrollbars=yes,top="+TopPosition+",left="+LeftPosition+",";
}else{
options ="height="+WinH+",width="+WinW+",top="+TopPosition+",left="+LeftPosition+",";
}
imgWin=window.open("","",options);
imgWin.document.write("¢Æ¢Æ HEAD ¢Æ¢Æ");//»õâÀÇ Å¸ÀÌÆ²¹®±¸
imgWin.document.write("
");//»õâÀÇ À̹ÌÁö¸¦ Ŭ¸¯Çϸé âÀÌ ´ÝÈ÷°Ô ÇÔ
}
// À̹ÌÁö RESIZE
function imgresize(img, size){
imgn= new Image();
imgn.src=img.src;
widthn = 600;
if(size != undefined && size != null && size != "") widthn = size;
var intervallo="";
if(imgn.width == 0){
funzione="imgresize('"+img+"', '"+size+"')";
intervallo=window.setTimeout(funzione,300);
}
if(imgn.width > widthn) {
img.width = widthn;
}
}
function winHeadBall(headball_type, source_id)
{
if(!checkLogin())
{
login('reload');
return;
}
document.hbFrm.location.href = '/event/head_ball/winHeadBall.jsp?headball_type=' + headball_type + '&source_id=' + source_id;
}
//ÆË¾÷â¿¡ POST ¹æ½ÄÀ¸·Î Parameter º¸³¾ °æ¿ì FormÀ» ¸¸µç´Ù
function makeForm(formName, nameArray, valueArray){
if(nameArray.length == valueArray.length){
var newForm = document.createElement("");
document.body.insertBefore(newForm);
for (var i = 0; i < nameArray.length; i++){
newForm.insertBefore(document.createElement(""));
}
return newForm;
}else{
alert('»ý¼ºÇÏ·Á´Â formÀÇ input name °ú value ÀÇ °¹¼ö°¡ ´Ù¸¨´Ï´Ù.');
return null;
}
}
///////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////// ºê·£¿ìµå Ãß°¡ /////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////
function globalLink(idx)
{
if(idx==1)
{
openLoginLayer(''); //·Î±×ÀÎ
}
else if(idx==2)
{
login_out('reload'); //·Î±×¾Æ¿ô
}
else if(idx==3)
{
location.href = PATH_PRE_JOIN; //ȸ¿ø°¡ÀÔ
}
else if(idx==4)
{
if(!login_flag) {
openLoginLayer('app=mypage&level1=main'); //¸¶ÀÌÆäÀÌÁö
return;
}else{
openMypageLayer('level1=main');
}
}
//location.href = lnk;
}
function footer(idx)
{
if(idx==1)
{
openWinInfo('http://member.kolon.com/member/agree.jsp','737','600');
}
else if(idx==2)
{
openWinInfo('http://member.kolon.com/member/privacyInfo.jsp','737','600');
}
else if(idx==3)
{
openCustomerLayer('level1=main'); //°í°´¼¾ÅÍ
}
}
function openWinInfo(url,width,height){
window.open(url,'','width='+width+',height='+height+',scrollbars=yes,resized=no');
}
function mapFunc(idx)
{
/*
¼¿ï :1
´ë±¸ :2
°æ»ï³²µµ :3
°æ»óºÏµµ :4
Àü¶ó³²µµ :5
ÃæÃ»ºÏµµ :6
ºÎ»ê :7
¿ï»ê :8
±¤ÁÖ :9
´ëÀü :10
ÃæÃ»³²µµ :11
°¿øµµ :12
¼ö¿ø :13
Á¦ÁÖµµ :14
°æ±âµµ :15
ÀÎõ :16
*/
var maparea = ["","1","3","10","11","12","16","6","7","2","4","15","8","0","14","9","5"];
goZoneView(maparea[idx]);
}
//provision
function provision()
{
window.open("/etc/etc_provision.jsp","","width=640, height=624, top=100, left=200, scrollbars=no")
}
//privacyinfo
function privacyinfo()
{
window.open("/etc/etc_privacyinfo.jsp","","width=727, height=624, top=100, left=200, scrollbars=yes")
}
//iframe resize
function resizeFrame(iframeObj){
var innerBody = iframeObj.contentWindow.document.body;
oldEvent = innerBody.onclick;
innerBody.onclick = function(){ resizeFrame(iframeObj, 1);oldEvent; };
var innerHeight = innerBody.scrollHeight + (innerBody.offsetHeight - innerBody.clientHeight);
iframeObj.style.height = innerHeight;
var innerWidth = innerBody.scrollWidth + (innerBody.offsetWidth - innerBody.clientWidth);
iframeObj.style.width = innerWidth;
if( !arguments[1] ) /* ƯÁ¤ À̺¥Æ®·Î ÀÎÇÑ È£Ãâ½Ã ½ºÅ©·ÑÀ» ±×³É µÐ´Ù. */
this.scrollTo(1,1);
}
function searchFunc(idx)
{
if (isNull(str)) {
alert('°Ë»ö¾î¸¦ ÀÔ·ÂÇϼ¼¿ä');
return;
}
openShopLayer('&app=shop¶m=Search/'+str);
return false;
}
/////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////// ¾÷üÃß°¡ //////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////
function ShowComment(idx)
{
var CheckItem = document.getElementById("showList");
var ListItem = CheckItem.getElementsByTagName("li");
//alert(ListItem.length);
for (i = 0; i <= ListItem.length-1 ; i++ )
{
if(i == idx)
{
if ( document.getElementById("showComment_"+i).style.display == "block" )
{
document.getElementById("showComment_"+i).style.display = "none";
document.getElementById("border_top_"+i).src = "http://image.fnckolon.com/1stforce/images/shopping/review/img_bordertop_off.gif";
document.getElementById("btn_view_"+i).src = "http://image.fnckolon.com/1stforce/images/shopping/review/btn_viewcomment_off.gif";
document.getElementById("commentList_"+i).style.background = "url(http://image.fnckolon.com/1stforce/images/shopping/review/img_borderbottom_off.gif) repeat-y left bottom";
}
else
{
document.getElementById("showComment_"+i).style.display = "block";
document.getElementById("border_top_"+i).src = "http://image.fnckolon.com/1stforce/images/shopping/review/img_bordertop_on.gif";
document.getElementById("btn_view_"+i).src = "http://image.fnckolon.com/1stforce/images/shopping/review/btn_viewcomment_on.gif";
document.getElementById("commentList_"+i).style.background = "url(http://image.fnckolon.com/1stforce/images/shopping/review/img_borderbottom_on.gif) repeat-y left bottom";
maxsize = 600; // °¡·Î»çÀÌÁî ( ´Ù¸¥°ªÀ¸·Î ÁöÁ¤ÇϸéµÊ)
var img = document.getElementsByName("commentImg");
for(y=0; y maxsize') )
{
var heightSize = ( eval('img[' + y + '].height')*maxsize )/eval('img[' + y + '].width') ;
eval('img[' + y + '].width = maxsize') ;
eval('img[' + y + '].height = heightSize') ;
}
}
}
}
else
{
document.getElementById("showComment_"+i).style.display = "none";
document.getElementById("border_top_"+i).src = "http://image.fnckolon.com/1stforce/images/shopping/review/img_bordertop_off.gif";
document.getElementById("btn_view_"+i).src = "http://image.fnckolon.com/1stforce/images/shopping/review/btn_viewcomment_off.gif";
document.getElementById("commentList_"+i).style.background = "url(http://image.fnckolon.com/1stforce/images/shopping/review/img_borderbottom_off.gif) repeat-y left bottom";
}
}
}
function img_resize() {
// DivContents ¿µ¿ª¿¡¼ À̹ÌÁö°¡ maxsize º¸´Ù Å©¸é ÀÚµ¿ ¸®»çÀÌÁî ½ÃÄÑÁÜ
maxsize = 600; // °¡·Î»çÀÌÁî ( ´Ù¸¥°ªÀ¸·Î ÁöÁ¤ÇϸéµÊ)
var img = document.getElementsByName("commentImg");
for(i=0; i maxsize') )
{
var heightSize = ( eval('img[' + i + '].height')*maxsize )/eval('img[' + i + '].width') ;
eval('img[' + i + '].width = maxsize') ;
eval('img[' + i + '].height = heightSize') ;
}
}
}
function aboutLink(idx)
{
for (i = 0; i < 5 ; i++ )
{
if (idx==i)
{
document.getElementById("Link_"+i).style.backgroundPosition = "0 100%";
document.getElementById("aboutCts_"+i).style.display = "block";
}
else
{
document.getElementById("Link_"+i).style.backgroundPosition = "0 0";
document.getElementById("aboutCts_"+i).style.display = "none";
}
}
}
function viewSelectList(idx)
{
if (document.getElementById("selectUL_"+idx).style.display == "none")
{
document.getElementById("selectUL_"+idx).style.display = "block";
}
else if (document.getElementById("selectUL_"+idx).style.display == "block")
{
document.getElementById("selectUL_"+idx).style.display = "none";
}
else
{
document.getElementById("selectUL_"+idx).style.display = "block";
}
}
function value(idx, val)
{
var Item = document.getElementById("selectUL_"+idx);
var ItemList = Item.getElementsByTagName("li");
for (i = 0; i <= ItemList.length-1 ; i++ )
{
var Result = document.getElementById("SelectResult_"+idx);
if (idx==i)
{
Result.childNodes[0].nodeValue = document.getElementById("option_"+val).childNodes[0].nodeValue;
Item.style.display = "none";
}
}
}
function SelectON(idx)
{
document.getElementById("option_"+idx).style.background = "#e1e0e0";
}
function SelectOFF(idx)
{
document.getElementById("option_"+idx).style.background = "#fff";
}
/* °áÁ¦Ã¢ ´Ý±âÇÔ¼ö */
function CloseshoppingBag(){
$("#TB_window").fadeOut();
tb_remove();
}
/* //°áÁ¦Ã¢ ´Ý±âÇÔ¼ö */
/* °áÁ¦Ã¢ ¿±âÇÔ¼ö */
function ViewshoppingBag(){
tb_show("layer", "#TB_inline?height=518&width=915&inlineId=shoppingBag&modal=true", true);
}
/* //°áÁ¦Ã¢ ¿±âÇÔ¼ö */
/* ÇϴܰíÁ¤ÇªÅÍ */
function fix_open()
{
document.getElementById("fix").style.height = "500px";
}
function fix_close()
{
document.getElementById("fix").style.height = "30px";
}
/* //ÇϴܰíÁ¤ÇªÅÍ */
function clearField(field)
{
if (field.value == field.defaultValue)
{
field.value = "";
}
}
function checkField(field)
{
if (!field.value)
{
field.value = field.defaultValue;
}
}
function CheckNodeUp()
{
NodeVal = document.getElementById("CheckNode").value;
NodeSave = Number(NodeVal) + 1;
document.getElementById("CheckNode").value = NodeSave;
if (NodeSave <= 0)
{
alert("1°³ ÀÌ»óÀÇ ¼ö·®À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
document.getElementById("CheckNode").value = 1;
}
}
function CheckNodeDown()
{
NodeVal = document.getElementById("CheckNode").value;
NodeSave = Number(NodeVal) - 1;
document.getElementById("CheckNode").value = NodeSave;
if (NodeSave < 1)
{
alert("1°³ ÀÌ»óÀÇ ¼ö·®À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
document.getElementById("CheckNode").value = 1;
}
else if (NodeSave <= 0)
{
alert("1°³ ÀÌ»óÀÇ ¼ö·®À» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
document.getElementById("CheckNode").value = 1;
}
}
// 20090427 Àå¹Ù±¸´ÏÁ¦¾îÇÔ¼ö
function ViewBag(idx)
{
if (idx==1)
{
document.getElementById("ViewShoppingBag").style.display = "block";
document.getElementById("ViewShoppingBag").style.bottom = "0px";
document.getElementById("bottomCartBox0").style.bottom = "0px";
}
else if (idx==2)
{
document.getElementById("ViewShoppingBag").style.display = "none";
}
}
// 20090427 Àå¹Ù±¸´ÏÁ¦¾îÇÔ¼ö
function closePop()
{
document.getElementById("about").style.display = "none";
document.getElementById("product_detailview").style.display = "none";
document.getElementById("makeadlist").style.display = "none";
}
/////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////// end ¾÷üÃß°¡ //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////