var iPop_imagePath='/images/armaniexchange/en_us/';//use this image path along with the IPop.js
function checkKeyword(keyword, defaultText) {
var minKeywordLength = 0;
var maxKeywordLength = 0;
minKeywordLength += 3;
maxKeywordLength += 30;
var errMsg = '';
var searchTerms = '';
keyword.value = jQuery.trim(keyword.value);
searchTerms = keyword.value;
defaultText = "Search";
var noSearchTerm = "Please enter a keyword or item number";
var shortSearchTerm = "Your keyword or item number must be at least 3 characters long";
if (searchTerms == defaultText) {
alert(noSearchTerm);
return false;
}
if (searchTerms == '') {
alert(noSearchTerm);
return false;
} else if ( searchTerms.length < minKeywordLength ) {
alert(shortSearchTerm);
return false;
} else {
return true;
}
}
function checkIfDefault(keyword) {
var defaultSearchTerm = "Search";
if(keyword==defaultSearchTerm) {
return '';
}
else {
return keyword;
}
}
var nsAutoComplete = null;
jQuery(document).ready(function(){
// match the width of the search text field
var iSearchBoxWidth = jQuery('#navsearchbox').css("width").replace(/\D/g, "")/1;
var widthDiff = (jQuery("#navsearchboxwrapper").width() - iSearchBoxWidth)/2;
if (widthDiff%2 != 0) widthDiff = widthDiff + 1;
if (widthDiff < iSearchBoxWidth) {
iSearchBoxWidth = jQuery("#navsearchbox").width() + widthDiff;
} else {
iSearchBoxWidth = iSearchBoxWidth + 4;
}
// init the autocomplete
nsAutoComplete = jQuery('#navsearchbox').autocomplete({
serviceUrl: '/search.do',
params: { action:'ac' },
width: (iSearchBoxWidth),
minChars: 3
});
});
jQuery(document).ready(function(){
jQuery("#globalBasket").popDown({navLink:"/basket.do?gc=1",navOverClass:"globalCartNavOver",closeDelay:300});
});
var customerId = '122138455';
function noGlobalCartOver() {
jQuery(".globalCartLayer").css("visibility","hidden");
}
function noGlobalCartOut() {
jQuery(".globalCartLayer").css("visibility","");
}
function CloseGlobalCart() {
jQuery(".globalCartLayer").css("display","none");
}
My Bag (1)
var globalNavBasket = jQuery('#globalNavBasket').detach();
globalNavBasket.appendTo(jQuery('#globalNavBasketContainer'));
var gSearch=jQuery("#gSearch").detach();
jQuery("div#gRSearch").replaceWith(gSearch);
var login = jQuery('#NavLogin').detach();
var account = jQuery('#NavAccount').detach();
var NavLoginAccount = jQuery('#NavLoginAccount');
if (NavLoginAccount.length != 0)
{
if (login.length !=0)
{
NavLoginAccount.replaceWith(login)
}
else NavLoginAccount.replaceWith(account);
}
positixxonErrorBlock(19,468,218);
function openTaxEstimater()
{
flyopen(350,160,'/estimateShippingAndTaxAction.do?method=view');
}
function chkOut(){
document.getElementById("mainForm").[안내]태그제한으로등록되지않습니다-xxonsubmit=function(){
return validateProductSelection('Please correct the following fields.
1) Please enter a quantity between 1 and', 'Please correct the following fields.
1) Select Color first. 2) Then select Size and add Quantity', this, 0,3);
};
document.getElementById("mainForm").action = '/basket.do?method=update';
//document.getElementById("mainForm").submit();
}
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
var miniCartImage="?$cart$";
var mincart = getScene7Image("",sUpdatedImg,miniCartImage,"","");
document.getElementById(sImageId).src= mincart;
}
var isBasketPage ='true';
var amazonLoginCallBackUrl='/checkout/singlepagecheckout.do?method=loginAmazonCallBack';
var amazonOrderReferenceId;
var amazonOrderReferenceId_session='';
var seller_id = 'A2I38I2YSDNB86';
new OffAmazonPayments.Widgets.Button ({
sellerId: seller_id,
useAmazonAddressBook: true,
onSignIn: function(orderReference) {
amazonOrderReferenceId = orderReference.getAmazonOrderReferenceId();
amazonOrderReferenceId_session = amazonOrderReferenceId_session;
if(isBasketPage =='true'){
validateSelection('amazon','Please correct the following fields.
1) Please enter a quantity between 1 and', 'Please correct the following fields.
1) Select Color first. 2) Then select Size and add Quantity', document.getElementById('mainForm'), 0, 3,amazonOrderReferenceId);
}
else {
window.location =amazonLoginCallBackUrl +'&amazonOrderReferenceId=' + amazonOrderReferenceId;
}
},
xxonError: function(error) {
// your error handling code
}
}).bind("payWithAmazonDiv");
var parmEmail ='';
function scroll_window_to_errordiv()
{
}
function validateEmailAddress(){
var emailRe = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*\.(\w{2}|(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum))$/
var strEmail = document.getElementById("emailSignUpBottomNav").emailAddress.value;
var currenturl ="" ;
if(!emailRe.test(strEmail)){
document.getElementById("emailSignUpBottomNav").action=document.getElementById("emailSignUpBottomNav").action + '?method=submit';//+currenturl
document.getElementById("emailSignUpBottomNav").emailAddress.select();
document.getElementById("emailSignUpBottomNav").emailAddress.focus();
//document.getElementById("emailSignUpBottomNav").submit();
var emailInvalid = "This does not appear to be a valid e-mail address. Please use the format name@domain.xxx. ";
alert(emailInvalid);
} else {
//document.getElementById("emailSignUpBottomNav").action=document.getElementById("emailSignUpBottomNav").action + '?emailSubmit=add'+currenturl
//document.getElementById("emailSignUpBottomNav").submit();
//flyopen(425,585,'/ancillary/genderInfo.do','GenderInfo');
document.getElementById("divGenderInfo").style.display="block";
document.getElementById('genderinfoframe').src='/ancillary/genderInfo.do'+'?emailAddress='+strEmail;
//var AX_Width = document.body.clientWidth;
document.getElementById("divGenderInfo").style.marginTop="-400px";
//document.getElementById("divGenderInfo").style.marginLeft="-360px";
var newtop = 0;
var el = document.getElementById('BottomNavImage');
if (el != null) {
newtop=el.offsetTop;
while ((el=el.offsetParent) != null) { newtop += el.offsetTop; }
} else {
el = document.getElementById("divGenderInfo");
newtop=el.offsetTop;
}
if(newtop<350)
{
//document.getElementById("divGenderInfo").style.top=250;
}
else{
//document.getElementById("divGenderInfo").style.top=newtop-320;
}
}
}
function KH(e) {
var pK = e ? e.which : window.event.keyCode;
if (pK==13)
{
validateEmailAddress();
}
}
비밀글 해당 댓글은 작성자와 운영자만 볼 수 있습니다.13.11.16 19:16