function CheckContactUsForm(MyForm) { ErrorMessage=''; Code=MyForm.Code.value; if(Code != '123ugg') { //document.getElementById('Code').className = 'redTD'; ErrorMessage+='Please Enter Correct Security Code\n'; } if(ErrorMessage == '') { MyForm.submit(); } else { alert(ErrorMessage); } } function GetOtherView(ImgLoc) { $NewImage=''; document.getElementById('ImgSwap').innerHTML = $NewImage; } function GetCalledColor(str) { str = str ? str : location.search; var query = str.charAt(0) == '?' ? str.substring(1) : str; var args = new Object(); if (query) { var fields = query.split('&'); for (var f = 0; f < fields.length; f++) { var field = fields[f].split('='); args[unescape(field[0].replace(/\+/g, ' '))] = unescape(field[1].replace(/\+/g, ' ')); } } for (var arg in args) { //alert(arg + '=' + args[arg]); } //ColorCode=sand&Style=classic tall&ColorDesc=Sand&Gender=women document.getElementById('ColorName').innerHTML = args['ColorDesc']; ProdN=args['Gender']+' '+args['Style']+' '+args['ColorDesc']; document.getElementById('ProductName').innerHTML = ProdN; //alert(Style); GetAvailableSizes(args['ColorCode'],args['Style'],args['Gender']); script = document.createElement( 'script' ); ScriptCall='http://www.fleecefootwear.com/ProductHandler.php?action=GetNewColorPic&ColorCode='+args['ColorCode']+'&Style='+args['Style']+'&Gender='+args['Gender']; //alert(ScriptCall); script.src = ScriptCall; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function LoadStyleDropDown() { var url ='https://www.fleecefootwear.com/ProductHandler.php?action=LoadStyleDropDown'; script = document.createElement( 'script' ); script.src = url; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function TrakIt(ThisSrc) { script = document.createElement( 'script' ); script.src = 'https://www.fleecefootwear.com/phpscripts/pagetraker.php?Page='+ThisSrc; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapColor(ColorCode,Style,ColorDesc,Gender) { document.getElementById('ColorName').innerHTML = ColorDesc; ProdN=Gender+' '+Style+' '+ColorDesc; document.getElementById('ProductName').innerHTML = ProdN; //alert(Style); GetAvailableSizes(ColorCode,Style,Gender); script = document.createElement( 'script' ); script.src = 'http://www.fleecefootwear.com/ProductHandler.php?action=GetNewColorPic&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapView(ColorCode,Style,Gender,View,ColorDesc) { document.getElementById('ColorName').innerHTML = ColorDesc; ProdN=Gender+' '+Style+' '+ColorDesc; document.getElementById('ProductName').innerHTML = ProdN; GetAvailableSizes(ColorCode,Style,Gender); document.getElementById('ImgSwap').innerHTML = "Getting New Image..."; script = document.createElement( 'script' ); script.src = 'http://www.fleecefootwear.com/ProductHandler.php?action=GetNewViewPic&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&View='+View; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SwapColorHandBag(ColorCode,Style,ColorDesc,SKU) { document.getElementById('ColorName').innerHTML = ColorDesc; //alert(ColorDesc); //alert(SKU); document.getElementById('SelectedSize').innerHTML = ''; script = document.createElement( 'script' ); script.src = 'http://www.fleecefootwear.com/ProductHandler.php?action=GetNewColorPic&ColorCode='+ColorCode+'&Style='+Style; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function GetSelectedColorName(ColorDesc) { document.getElementById('ColorName').innerHTML = ColorDesc; } function GetColorMini(ColorCode,Style,ColorDescription,Gender) { //alert(DivColorName); script = document.createElement( 'script' ); script.src = 'http://www.fleecefootwear.com/ProductHandler.php?action=GetNewColorPicMini&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender+'&DivID='+Style; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function GetColorNameMini(Style,ColorDescription) { //DivColorName='Color'+Style; //document.getElementById(DivColorName).innerHTML = ColorDescription; } function GetAvailableSizes(ColorCode,Style,Gender) { //alert(ColorCode); document.getElementById('AvailableSizes').innerHTML = 'Please wait, loading available sizes.....'; script = document.createElement( 'script' ); PageCall='http://www.fleecefootwear.com/ProductHandler.php?action=AvailableSizes&ColorCode='+ColorCode+'&Style='+Style+'&Gender='+Gender; //alert(PageCall); script.src = PageCall; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function LoadMiniCart() { script = document.createElement( 'script' ); script.src = 'https://www.fleecefootwear.com/NewCart/CartHandler.php?action=LoadMiniCart'; document.getElementsByTagName( 'head' )[0].appendChild( script ); } function SelectSize(SKU) { //alert(SKU); if(SKU != '') {document.getElementById('SelectedSize').innerHTML = '';} } var whosChanged = null; function ChangeColor(el) { el.style.backgroundColor = "#FE3000"; el.style.color = "#000000"; if (whosChanged != null) { whosChanged.style.backgroundColor = "" whosChanged.style.color = "" } whosChanged = el; } function AddToCart(Action) { //alert(UPC12digit); if(document.getElementById('UPC12digit')) { document.getElementById('superminicart').innerHTML = ""; document.getElementById('ImgSwap').innerHTML = "

Adding to cart...

"; var UPC12digit = document.getElementById('UPC12digit').value; var Qty = document.getElementById('Qty').value; //alert(UPC12digit); script = document.createElement( 'script' ); script.src = 'https://www.fleecefootwear.com/NewCart/CartHandler.php?action='+Action+'&sku='+UPC12digit+'&Qty='+Qty; document.getElementsByTagName( 'head' )[0].appendChild( script ); } else { alert('Please Choose a size.'); } } function TrakPage() { Link='https://www.fleecefootwear.com/pagetraker.php?Page='+window.location+'&Referer='; script = document.createElement( 'script' ); script.src =Link; document.getElementsByTagName( 'head' )[0].appendChild( script ); } TrakPage(); var popWin = null // use this when referring to pop-up window var winCount = 0 var winName = "popWin" function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){ var d_winLeft = 20 // default, pixels from screen left to window left var d_winTop = 20 // default, pixels from screen top to window top winName = "popWin" + winCount++ //unique name for each pop-up window closePopWin() // close any previously opened pop-up window if (openPopWin.arguments.length >= 4) // any additional features? winFeatures = "," + winFeatures+','; else winFeatures = "" //window.open('jex5.htm','mywindow','width=400,height=200,left=0,top=100,screenX=0,screenY=100') if (openPopWin.arguments.length == 6) // location specified winFeatures += 'width='+winWidth+',height='+ winHeight+',left='+ winLeft+',top='+ winTop; else winFeatures += 'width='+winWidth+',height='+ winHeight+',left='+d_winLeft+',top='+ d_winTop //alert(winFeatures); popWin = window.open(winURL, winName, winFeatures) } function closePopWin(){ // close pop-up window if it is open if (navigator.appName != "Microsoft Internet Explorer" || parseInt(navigator.appVersion) >=4) //do not close if early IE if(popWin != null) if(!popWin.closed) popWin.close() } function getLocation(winWidth, winHeight, winLeft, winTop){ return "" }