var iPop_imagePath='http://ii.armaniexchange.com/ArmaniExchange/images/en_US/';//use this image path along with the IPop.js
function LTrim(str)
{
var whitespace = new String(" \t\n\r");
var s = new String(str);
if (whitespace.indexOf(s.charAt(0)) != -1) {
var j=0, i = s.length;
while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
j++;
s = s.substring(j, i);
}
return s;
}
function RTrim(str)
{
var whitespace = new String(" \t\n\r");
var s = new String(str);
if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
var i = s.length - 1;
while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
i--;
s = s.substring(0, i+1);
}
return s;
}
function Trim(str)
{
return RTrim(LTrim(str));
}
function checkKeyword(keyword, defaultText) {
var minKeywordLength = 0;
var maxKeywordLength = 0;
minKeywordLength += 3;
maxKeywordLength += 30;
var errMsg = '';
//alert("minKeywordLength " + minKeywordLength);
var searchTerms = '';
searchTerms = keyword.value;
//alert("searchTerms.length " + searchTerms.length);
var noSearchTerm = 'Please enter a keyword or item number';
var shortSearchTerm = 'Your keyword or item number must be at least 3 characters long';
var invalidSearchTermMessage = 'No items were found matching your keyword or search criteria.';
var validChars = /^[A-Za-z0-9.,#\s$-]+$/; // add all acceptable characters here.
if(!searchTerms.match(validChars) ){
// show the user a dialog if < or > or ! are found in the keyword.
alert(invalidSearchTermMessage);
return false;
}
if (searchTerms == defaultText) {
alert(noSearchTerm);
return false;
}
if (RTrim(LTrim(keyword.value)) == '') {
keyword.value=RTrim(LTrim(keyword.value));
alert(noSearchTerm);
return false;
} else if ( searchTerms.length < minKeywordLength ) {
alert(shortSearchTerm);
return false;
} else {
return true;
}
}
var globalDivX=0;
var globalDivY=0;
var browserName=navigator.appName;
function showQuickLook(x,y,z,pk)
{
var sName='currentCode_'+pk;
var ruleID = 'null';
if (ruleID != null && window.location.href.indexOf("display.do?ruleID=") != -1)
{
x=x+"&quickviewURI="+ruleID;
}
var elt = document.getElementById(sName);
if (elt != null) {
var sCode=document.getElementById(sName).value;
}
if(sCode!=""){
x=x+"&imageName="+sCode;
}
var newleft = 0; var sizeoption;
var newtop = 0;
var option;
if (document.getElementsByName("testDivID")[0] != null)
{
option = "testDivID";
}
else
{
option = "size";
}
if(document.getElementsByName(option) != null)
{
// alert(option);
// alert(document.getElementsByName(option));
var sizeoption = document.getElementsByName(option)[0];
}
if(sizeoption != null)
{
var e = sizeoption;
newleft = e.offsetLeft;
//alert("Earlier Newleft : "+newleft);
while ((e=e.offsetParent) != null) { newleft += e.offsetLeft; }
if(option == "testDivID")
{
if(browserName == "Microsoft Internet Explorer")
{
newleft = newleft + 131;
}
else
{
newleft = newleft - 16;
}
}
}
// alert("Later Newleft : "+newleft);
AX_Pop('415','635','','',x);
/*document.getElementById("divQuickLook").style.display="block";
document.getElementById(y).src=x;
var el = document.getElementById(z);
if (el != null) {
newtop=el.offsetTop;
while ((el=el.offsetParent) != null) { newtop += el.offsetTop; }
} else {
el = document.getElementById("divQuickLook");
newtop=el.offsetTop;
}
if(option == "size")
{
newleft = newleft + 37;
newtop = newtop - 1;
}
if(newtop<550)
{
document.getElementById("divQuickLook").style.top=newtop+38;
}
else{
document.getElementById("divQuickLook").style.top=newtop-340;
}
document.getElementById("divQuickLook").style.left = newleft-15;
document.getElementById("divQuickLook").style.width=662;
document.getElementById("divQuickLook").style.height=400;
*/
SendOmniEvent("Quick Shop","event24","Quick Shop");
}
function inQuickView(node)
{
if (node == null)
return false;
if (node.id=='divQuickLook' || node.ide=='quickLookView')
return true;
else
return inQuickView(node.parentNode);
}
function hidQuickLook()
{
if (!inQuickView(event.toElement||event.relatedTarget)) {
document.getElementById("quicklookframe").src="";
document.getElementById("divQuickLook").style.display="none";
}
}
/* these functions are used for DirHero3RowsNoQuickView template only */
function LoadHero(img_source){
var hero = document.images['hero_img'];
if (hero != null)
{
var width = document.images['hero_img'].width;
var height = document.images['hero_img'].height;
document.images['hero_img'].src=img_source;
document.images['hero_img'].width = width;
document.images['hero_img'].height = height;
}
}
function LoadHero2(code){
document.getElementById("hero_price").innerHTML = document.getElementById("price_"+code).innerHTML;
var string = document.getElementById("name_"+code).innerHTML;
var index = string.indexOf("
var aCatImgs = new Array();
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_men_off.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_men_on.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_women_off.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_women_on.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_looks_off.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_looks_on.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_lifestyle_off.gif";
aCatImgs[aCatImgs.length] = "http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/globalnav_lifestyle_on.gif";
preload(aCatImgs);
function LTrim(str)
{
var whitespace = new String(" \t\n\r");
var s = new String(str);
if (whitespace.indexOf(s.charAt(0)) != -1) {
var j=0, i = s.length;
while (j < i && whitespace.indexOf(s.charAt(j)) != -1)
j++;
s = s.substring(j, i);
}
return s;
}
function RTrim(str)
{
var whitespace = new String(" \t\n\r");
var s = new String(str);
if (whitespace.indexOf(s.charAt(s.length-1)) != -1) {
var i = s.length - 1;
while (i >= 0 && whitespace.indexOf(s.charAt(i)) != -1)
i--;
s = s.substring(0, i+1);
}
return s;
}
function Trim(str)
{
return RTrim(LTrim(str));
}
function checkKeyword(keyword, defaultText) {
var minKeywordLength = 0;
var maxKeywordLength = 0;
minKeywordLength += 3;
maxKeywordLength += 30;
var errMsg = '';
//alert("minKeywordLength " + minKeywordLength);
var searchTerms = '';
searchTerms = keyword.value;
//alert("searchTerms.length " + searchTerms.length);
var noSearchTerm = 'Please enter a keyword or item number';
var shortSearchTerm = 'Your keyword or item number must be at least 3 characters long';
var invalidSearchTermMessage = 'No items were found matching your keyword or search criteria.';
var validChars = /^[A-Za-z0-9.,#\s$-]+$/; // add all acceptable characters here.
if(!searchTerms.match(validChars) ){
// show the user a dialog if < or > or ! are found in the keyword.
alert(invalidSearchTermMessage);
return false;
}
if (searchTerms == defaultText) {
alert(noSearchTerm);
return false;
}
if (RTrim(LTrim(keyword.value)) == '') {
keyword.value=RTrim(LTrim(keyword.value));
alert(noSearchTerm);
return false;
} else if ( searchTerms.length < minKeywordLength ) {
alert(shortSearchTerm);
return false;
} else {
return true;
}
}
var image_path="http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalnav/";
var image_name="glob_nav_2_2_FS.gif";
var image_link="xxjavascript:flyopen(440,456,'/customerservice/CustomerServiceContents.do?to_open=PC');";
/*
Put only the country specific marketing message image name
in the above variable called "image_name". Please note that
don't place any path to the image. The path or directory is
derived by another variable called "image_path" in the parent
JSP page.
The path where the image needs to be placed is inside
"${siteImages.imagePath}global/globalnav/" folder.
This approach is extrimely important to print secure
as well non-secure images.
*/
var image="";
document.write(image);
function $9(ap){try{if(ap.filters){return 1}}catch(e){}}
/*
Milonic DHTML Menu - xxJavaScript Website Navigation System.
Copyright 2004 (c) Milonic Solutions Limited. All Rights Reserved.
Version 5+ Data File structure is the property of Milonic Solutions Ltd and must only be used in Milonic DHTML Products
This is a commercial software product, please visit http://www.milonic.com/ for more information.
See http://www.milonic.com/license.php for Commercial License Agreement
All Copyright statements must always remain in place in all files at all times
******* PLEASE NOTE: THIS IS NOT FREE SOFTWARE, IT MUST BE LICENSED FOR ALL USE *******
*/
_menuCloseDelay=0
_menuOpenDelay=0
var sub1TopOffset = 0;
var sub1LeftOffset = -217;
_subOffsetTop=0 // Sub menu top offset
_subOffsetLeft=0 // Sub menu left offset
with(menuStyle=new mm_style()){
onclass="cartmenuTopOn";
offclass="cartmenuTopOff";
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=0;
}
with(menuStyleTopCart=new mm_style()){
onclass="cartmenuTopOn";
offclass="cartmenuTopOff";
onbgcolor="#FFFFFF";
offbgcolor="#FFFFFF";
borderwidth="0";
noSubImageSpacing = true;
}
with(menuStyleCart=new mm_style()){
onclass="cartmenuItemOn";
offclass="cartmenuItemOff";
onbgcolor="";
offbgcolor="#f8f8f8";
borderwidth="0";
noSubImageSpacing = true;
}
with(milonic=new menuname('MenuCart')){
top = "offset=" + sub1TopOffset;
left = "offset=" + sub1LeftOffset;
style=menuStyleCart;
var dkicker='';
aI("text=
on error resume next
flash2Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2")))
flash3Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))
flash4Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))
flash5Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))
flash6Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))
flash7Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))
flash8Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))
flash9Installed = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))
var ShowUnavailableOptions = false;
var showPrice =false;
var showPriceAsText =true;
var showInventoryAsText =false;
var showAdvancedSwatch =true;
var noOptionsMsgPom = " Unavailable ";
var backorderMsg = " Available ";
var outOfStockMsg = " Out of Stock ";
var inStockMsg = " In Stock ";
var firstMenuPrefix = "First ";
var followMenuPrefix = "Then ";
var lastMenuPrefix = "Last ";
//If option type is Size then by default "Select a Size will be selected"
var sizeOptionTypeId="2";
var imageMsg = "Color Shown: ";
//var imagePath ="http://ii.armaniexchange.com/ArmaniExchange/images/en_US/";
var imagePath="http://ii.armaniexchange.com/ArmaniExchange/images/en_US/";
var spaceImagePath="http://ii.armaniexchange.com/ArmaniExchange/images/en_US/global/globalgraphics/spacer01.gif";
var DetailImagePath ="local/products/detailsm/";
var SwatchImagePath ="local/products/detail/swatch/";
//var DetailImagePath ="local/products/swatch/";
var AltImagePath = "local/products/source/";
var LooksImagePath ="local/products/looks/product/";
var ThumbImagePath="local/products/swatch/";
var SuperMiniThumbImagePath="local/products/swatch/";
var needServerName="false";
var previousImgSrc;
var previousImgID;
var theFlashViewer;
var previousColorCode;
var imgExt = ".jpg";
var imgSuffix = ".zd";
var qtyMsg = 'Please correct the following fields.
1) Please enter a quantity between 1 and';
var moreQtyMsg ='???err.common.moreQuantityEntered???';
var noOptionsMsg = 'Please correct the following fields.
1) Select Color first. 2) Then select Size and add Quantity';
var lImage="";
dnsp=true;
function continueShopping()
{
if(history.length > 1)
{
history.go(-1);
}
else
{
window.location.href="/home.do";
}
}
positi[안내]태그제한으로등록되지않습니다-xxonErrorBlock(610,330,127);
첫댓글 쪽지드렸습니다 ^^