function colorOptionTypeValues(oSelectObj){
// string for holding the select form element's name.
var sTypeName = oSelectObj.name;
// object ref which points to the related options hidden field.
var oOptionTypeValues = eval("document.getElementById('mainForm').optionTypeValues_"+(sTypeName.split("_"))[1]);
// string for holding the target field's ID.
var sTargetFieldID = oOptionTypeValues.id;
// string for holding the concatenated value of the optionTypePk and the optionPk.
var sOptionTypeValue = (sTypeName.split("_"))[2] + "=" + oSelectObj[oSelectObj.selectedIndex].value;
// update the MAIN_OPTIONS object to reflect additions or updates
update_MAIN_OPTIONS(sTargetFieldID, sTypeName, sOptionTypeValue);
// update the target field's value, for posting the data.
oOptionTypeValues.value = MAIN_OPTIONS[sTargetFieldID].join(":");
// updated image for this option
var sUpdatedImg= oSelectObj[oSelectObj.selectedIndex].getAttribute("imagePath");
// the image id which needs to be updated
var sImageId = oSelectObj.getAttribute("imageId");
// updaste the image in the basket for this selection
document.getElementById(sImageId).src= sUpdatedImg;
}
첫댓글 주문완료돼었습니다/ 품절 및 추가입금내역을 다음날 품절,추가입금내역 게시판에서 확인하실수 있습니다^^