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 = "