var so = new SWFObject("http://AERO.imageg.net/cms_widgets/61/24/612499_assets/111211_Hoodie_gcms_Current.swf","null", "492", "25","8", "null"); so.addParam("swliveconnect","true"); so.addParam("menu","false"); so.addParam("quality","high"); so.addParam("base","."); so.addParam("type","application/x-shockwave-flash"); so.addParam("pluginspace","http://www.adobe.com/go/getflashplayer"); so.addParam("width","492"); so.addParam("height","25"); so.addParam("name","cms_flash103739395"); so.addParam("align","Default"); so.addParam("allowScriptAccess","always"); so.addParam("wmode","transparent"); so.addVariable("FlashStaticCont","http://aero.imageg.net"); so.addVariable("FlashDynamicCont","http://www.aeropostale.com"); so.addVariable("FlashBulkCont","http://aero.imageg.net"); so.addVariable("FlashCampaignDir","cms_widgets/61/24/612499_assets"); so.addParam("allowFullScreen","false"); so.write("RTCMS_FLASH72");
function _includeJQ() {
if (typeof(jQuery) == "undefined") return true;
var jqv = jQuery(document).jquery.split('.');
var major = parseInt(jqv[0]); var minor = parseInt(jqv[1]);
return (major === 1 && minor < 4);
}
var $_before = typeof($) === 'function' ? $ : undefined;
if (_includeJQ()) { document.write('<\/script>'); }
var $jQ;
if (typeof($_before) === "function" && $_before(document).jquery) {
$jQ = jQuery;
}
else {
$jQ = jQuery.noConflict();
if (typeof($_before) === "function")
$ = $_before;
}
function fixPrototypeJS() {
try {
var ary = [];
ary.shift();
}
catch (e) {
Array.prototype.shift = function() {
if (this.length === 0)
return undefined;
var result = this[0];
for (var i = 0; i < this.length - 1; i++)
this[i] = this[i + 1];
this.length--;
return result;
};
}
}
// call it now, and schedule it to call on 'ready' as well in case prototype is loaded after this location.
fixPrototypeJS();
$jQ(document).ready(fixPrototypeJS);
if (!String.prototype.trim) {
String.prototype.trim = function() { return this.replace(/^\s+|\s+$/g, ''); };
}
// keys should match id of fields (fname, lname, etc.)
// these are hard-coded defaults; the error strings should be overridden if necessary within
// the page's code.
var required_error_strings = {
fName: 'First name is required',
lName: 'Last name is required',
addLine1: 'Address is required',
checkoutCity: 'City is required',
stateOrProvince: 'State is required',
othStateOrProv: 'Other state/province is required',
zipCode: 'Zip is required',
shiptostoreZIP: 'Zip is required',
addrPhone: 'Phone is required',
emailAdd: 'Email is required',
city_state_zip: '
The city and ZIP code do not match. Please review or
Use as entered
',
crdType: 'Card type is required',
crdNumbr: 'Card number is required',
plccNumbr: 'Card number is required',
ccPin: 'Security code is required - (What\'s this?)',
cardIdNum: 'Security ID# is required (What\'s this?)',
plccvnc: 'Security ID# is required (What\'s this?)',
cardExpDate: 'Expiration date is required (mm/yy)',
bmlSSN: 'Social Security number is required',
giftCardNum: 'Gift card number is required'
};
var invalid_error_strings = {
cardExpDateMo: 'Invalid Month',
cardExpDate: 'Expiration date is invalid',
bmlSSN: 'Social Security number is invalid'
};
$jQ(document).ready(function() {
$jQ(".dataRequired").blur(function() {
var elem_id = $jQ(this).attr("id");
var msg = required_error_strings[elem_id];
if (!msg) {
msg = getLabel(elem_id);
if (!msg)
msg = 'Is a required field';
else
msg += ' is a required field';
}
var obj = { elem_id: elem_id, type: 'required', message: msg };
if (this.form) {
if (this.form.id)
obj.container = 'form#' + this.form.id;
else if (this.form.name)
obj.container = 'form[name=' + this.form.name + ']';
else
obj.container = 'form';
}
validateRequired(obj);
});
$jQ("input.dataRequired:checkbox").click(function() {
var elem_id = $jQ(this).attr("id");
var msg = required_error_strings[elem_id];
if (!msg) {
msg = getLabel(elem_id);
if (!msg)
msg = 'Is a required field';
else
msg += ' is a required field';
}
var obj = { elem_id: elem_id, type: 'required', message: msg };
if (this.form) {
if (this.form.id)
obj.container = 'form#' + this.form.id;
else if (this.form.name)
obj.container = 'form[name=' + this.form.name + ']';
else
obj.container = 'form';
}
validateRequired(obj);
});
$jQ(".valAlphaNumeric").blur(function() {
var elem_id = $jQ(this).attr("id");
var msg = invalid_error_strings[elem_id];
if (!msg) {
msg = getLabel(elem_id);
if (!msg)
msg = 'Must contain only numbers and letters';
else
msg += ' must contain only numbers and letters';
}
validateRegex({ elem_id: elem_id, regex: /^[a-zA-Z0-9]*$/, message: msg });
});
$jQ(".valNumeric").blur(function() {
var elem_id = $jQ(this).attr("id");
var msg = invalid_error_strings[elem_id];
if (!msg) {
msg = getLabel(elem_id);
if (!msg)
msg = 'Must contain only numbers';
else
msg += ' must contain only numbers';
}
validateRegex({ elem_id: elem_id, regex: /^[0-9]*$/, message: msg });
});
}); //end document ready function
function throwError(id) {
hideAllErrors();
$jQ("#showError").show();
$jQ("#" + id).addClass("field_error").select().focus();
}
function hideAllErrors() {
$jQ("#showError").hide();
}
function doRemove(whichProd)
{
document.qty.action.value = "moveOrderItem";
document.qty.secondaryAction.value = "removeItem";
document.qty.remove.value = whichProd;
for(var test=0;test 0)
{
if (!workingPromoList.contains(pc))
workingPromoList.push(pc);
document.applyDiscount.promoCode.value = workingPromoList.join(',');
document.applyDiscount.np.value = 'cart';
document.applyDiscount.submit();
}
else
{
alert('Please enter a Promotion/Discount code.');
}
}
function popUp(URL)
{
day = new Date();
id = day.getTime();
eval("page" + id + " = /*window.open*/(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=600');");
}
비밀글 해당 댓글은 작성자와 운영자만 볼 수 있습니다.11.11.15 13:56