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;
}
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;
}
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;
}
var newTop= 468+ 90;
positi[안내]태그제한으로등록되지않습니다-xxonErrorBlock(19,newTop,218);
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;
}
var newTop= 468+ 180;
positi[안내]태그제한으로등록되지않습니다-xxonErrorBlock(19,newTop,218);
첫댓글 쪽지드렸어요