var seconds=0;var catboxdivid="categoryProductsbox";var url="";var url2="";var CategoryID="";var genderValue="";var priceValue="";var RatingValue="";var CategoryName="";var intNumPerPage=10;var intPageCount=1;var divid="RentalRatesID";var dividProShop="divProShopInfo";var urlProShop="";var dividRentalCalendar="div_rentalavailablecalendar";var urlRentalCalendar="";var divProductPic="ProductPic";var urlvariantimage="";var urladdupsellproduct="";if(document.getElementById("GenderFilter")!=null){genderValue=document.getElementById("GenderFilter").value}else{genderValue=0}if(document.getElementById("PriceFilter")!=null){priceValue=document.getElementById("PriceFilter").value}else{priceValue="all"}if(document.getElementById("RatingFilter")!=null){RatingValue=document.getElementById("RatingFilter").value}else{RatingValue="all"}function setupProducts(a,b){url="/landingpageproductfilter.aspx?gv=all&pv=all&rv=all&cid="+CategoryID+"&pg=1&n="+CategoryName;$("#categoryProductsbox").load(url)}function setupPageNumbers(a,c,b){CategoryID=a;CategoryName=c;intNumPerPage=b;$("#paginator").remove();$("#Bottompaginator").remove();url="/landingpageproductfilter.aspx?gv=all&pv=all&rv=all&cid="+CategoryID+"&pg=1&n="+CategoryName;url2=url+"&rowcount=5";$.get(url2,function(d){$("#page_count").val(Math.ceil(d/Number(intNumPerPage)));intPageCount=Math.ceil(d/Number(intNumPerPage));generateRows(1);generateBottomRows(1)})}function updatePageNumbers(c,b,a){url2=b+"&rowcount=5";$.get(url2,function(d){$("#page_count").val(Math.ceil(d/Number(c)));intPageCount=Math.ceil(d/Number(intNumPerPage));generateRows(a);generateBottomRows(a)})}function filterproductsby(d,h,a){document.getElementById(catboxdivid).innerHTML="<div class=CategoryProductLoading><img src=/skins/skin_1/images/loadingimage.gif height=60 width=60 alt=Please wait whilst we load your results /><br /><br />Loading...</div>";if(document.getElementById("GenderFilter")!=null){genderValue=document.getElementById("GenderFilter").value}else{genderValue=0}if(document.getElementById("PriceFilter")!=null){priceValue=document.getElementById("PriceFilter").value}else{priceValue="all"}if(document.getElementById("RatingFilter")!=null){RatingValue=document.getElementById("RatingFilter").value}else{RatingValue="all"}url="/landingpageproductfilter.aspx?gv="+genderValue+"&pv="+priceValue+"&rv="+RatingValue+"&cid="+CategoryID+"&pg="+a+"&n="+CategoryName;updatePageNumbers(intNumPerPage,url,a);var b;try{b=new XMLHttpRequest()}catch(g){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var f=fetch_unix_timestamp();var c=url;b.onreadystatechange=function(){if(b.readyState==4){document.getElementById(catboxdivid).innerHTML=b.responseText}};b.open("GET",c,true);b.send(null)}function generateRows(d){var c=$("#page_count").val();var a=intPageCount;if(a==5){var b="<div id='PageNumberWrapper'>";b+="<div class='PageNumberFirst'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a>";b+="</div>";b+="<div id='paginator'>";for(i=1;i<=a;i++){if(i==d){b+="<a href='#' class='pagor selected'>"+i+"</a>"}else{b+="<a href='#' class='pagor'>"+i+"</a>"}}b+="</div>";b+="<div class='PageNumberLast'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";b+="</div>";b+="</div>";if($("#PageNumberContainer").html()==null){$("#NumberContainer").html("<div id='PageNumberContainer'></div>")}else{}$("#PageNumberContainer").html(b);$(".pagor").click(function(){updatePage(this)})}else{if(a<5){var b="<div id='PageNumberWrapper'>";b+="<div class='PageNumberFirst'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";b+="<div id='paginator'>";for(i=1;i<=a;i++){if(i==d){b+="<a href='#' class='pagor selected'>"+i+"</a>"}else{b+="<a href='#' class='pagor'>"+i+"</a>"}}b+="</div>";b+="<div class='PageNumberLast'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";b+="</div>";b+="</div>";if($("#PageNumberContainer").html()==null){$("#NumberContainer").html("<div id='PageNumberContainer'></div>")}else{}$("#PageNumberContainer").html(b);$(".pagor").click(function(){var h=$(".pagor").index(this);var g="landingpageproductfilter.aspx?gv="+genderValue+"&pv="+priceValue+"&rv="+RatingValue+"&cid="+CategoryID+"&pg="+h+"&n="+CategoryName;filterproductsby(CategoryID,CategoryName,(h+1));$(".pagor").removeClass("selected");$(this).addClass("selected")})}else{if(d<5){var b="<div id='PageNumberWrapper'>";b+="<div class='PageNumberFirst'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";b+="<div id='paginator'>";for(i=1;i<=5;i++){if(i==d){b+="<a href='#' class='pagor selected'>"+i+"</a>"}else{b+="<a href='#' class='pagor'>"+i+"</a>"}}b+="...<a href='#' class='pagor'>"+Number(a)+"</a>";b+="</div>";b+="<div class='PageNumberLast'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";b+="</div>";b+="</div>";if($("#PageNumberContainer").html()==null){$("#NumberContainer").html("<div id='PageNumberContainer'></div>")}else{}$("#PageNumberContainer").html(b);$(".pagor").click(function(){updatePage(this)})}else{if(d>(Number(a)-4)){var f="<div id='PageNumberWrapper'>";f+="<div class='PageNumberFirst'>";f+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";f+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";f+="<div id='paginator'>";f+="<a href='#' class='pagor'>1</a>...";for(i=(Number(a)-4);i<=Number(a);i++){if(i==d){f+="<a href='#' class='pagor selected'>"+i+"</a>"}else{f+="<a href='#' class='pagor'>"+i+"</a>"}}f+="</div>";f+="<div class='PageNumberLast'>";f+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";f+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";f+="</div>";f+="</div>";if($("#PageNumberContainer").html()==null){$("#NumberContainer").html("<div id='PageNumberContainer'></div>")}else{}$("#PageNumberContainer").html(f);$(".pagor").click(function(){updatePage(this);$(".pagor").removeClass("selected");$(this).addClass("selected")})}else{var e="<div id='PageNumberWrapper'>";e+="<div class='PageNumberFirst'>";e+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";e+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";e+="<div id='paginator'>";e+="<a href='#' class='pagor'>1</a>...";for(i=(Number(d)-2);i<=(Number(d)+2);i++){if(i==d){e+="<a href='#' class='pagor selected'>"+i+"</a>"}else{e+="<a href='#' class='pagor'>"+i+"</a>"}}e+="...<a href='#' class='pagor'>"+a+"</a>";e+="</div>";e+="<div class='PageNumberLast'>";e+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";e+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";e+="</div>";e+="</div>";if($("#PageNumberContainer").html()==null){$("#NumberContainer").html("<div id='PageNumberContainer'></div>")}else{}$("#PageNumberContainer").html(e);$(".pagor").click(function(){updatePage(this);$(".pagor").removeClass("selected");$(this).addClass("selected")})}}}}}function generateBottomRows(d){var c=$("#page_count").val();var a=intPageCount;if(a==5){var b="<div id='BottomPageNumberWrapper'>";b+="<div class='PageNumberFirst'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a>";b+="</div>";b+="<div id='Bottompaginator'>";for(i=1;i<=a;i++){if(i==d){b+="<a href='#' class='pagorb selected'>"+i+"</a>"}else{b+="<a href='#' class='pagorb'>"+i+"</a>"}}b+="</div>";b+="<div class='PageNumberLast'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";b+="</div>";b+="</div>";if($("#BottomPageNumberContainer").html()==null){$("#BottomNumberContainer").html("<div id='BottomPageNumberContainer'></div>")}else{}$("#BottomPageNumberContainer").html(b);$(".pagorb").click(function(){updatePage(this)})}else{if(a<5){var b="<div id='BottomPageNumberWrapper'>";b+="<div class='PageNumberFirst'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";b+="<div id='Bottompaginator'>";for(i=1;i<=a;i++){if(i==d){b+="<a href='#' class='pagorb selected'>"+i+"</a>"}else{b+="<a href='#' class='pagorb'>"+i+"</a>"}}b+="</div>";b+="<div class='PageNumberLast'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";b+="</div>";b+="</div>";if($("#BottomPageNumberContainer").html()==null){$("#BottomNumberContainer").html("<div id='BottomPageNumberContainer'></div>")}else{}$("#BottomPageNumberContainer").html(b);$(".pagorb").click(function(){var h=$(".pagorb").index(this);var g="landingpageproductfilter.aspx?gv="+genderValue+"&pv="+priceValue+"&rv="+RatingValue+"&cid="+CategoryID+"&pg="+h+"&n="+CategoryName;filterproductsby(CategoryID,CategoryName,(h+1));$(".pagorb").removeClass("selected");$(this).addClass("selected")})}else{if(d<5){var b="<div id='BottomPageNumberWrapper'>";b+="<div class='PageNumberFirst'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";b+="<div id='Bottompaginator'>";for(i=1;i<=5;i++){if(i==d){b+="<a href='#' class='pagorb selected'>"+i+"</a>"}else{b+="<a href='#' class='pagorb'>"+i+"</a>"}}b+="...<a href='#' class='pagorb'>"+Number(a)+"</a>";b+="</div>";b+="<div class='PageNumberLast'>";b+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";b+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";b+="</div>";b+="</div>";if($("#BottomPageNumberContainer").html()==null){$("#BottomNumberContainer").html("<div id='BottomPageNumberContainer'></div>")}else{}$("#BottomPageNumberContainer").html(b);$(".pagorb").click(function(){updatePage(this)})}else{if(d>(Number(a)-4)){var f="<div id='BottomPageNumberWrapper'>";f+="<div class='PageNumberFirst'>";f+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";f+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";f+="<div id='Bottompaginator'>";f+="<a href='#' class='pagorb'>1</a>...";for(i=(Number(a)-4);i<=Number(a);i++){if(i==d){f+="<a href='#' class='pagorb selected'>"+i+"</a>"}else{f+="<a href='#' class='pagorb'>"+i+"</a>"}}f+="</div>";f+="<div class='PageNumberLast'>";f+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";f+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";f+="</div>";f+="</div>";if($("#BottomPageNumberContainer").html()==null){$("#BottomNumberContainer").html("<div id='BottomPageNumberContainer'></div>")}else{}$("#BottomPageNumberContainer").html(f);$(".pagorb").click(function(){updatePage(this);$(".pagorb").removeClass("selected");$(this).addClass("selected")})}else{var e="<div id='BottomPageNumberWrapper'>";e+="<div class='PageNumberFirst'>";e+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'><img src='../skins/skin_1/images/firstpagenumber.gif' height='10' width='15' alt='First page' /></a>";e+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,1);'>First</a></div>";e+="<div id='Bottompaginator'>";e+="<a href='#' class='pagorb'>1</a>...";for(i=(Number(d)-2);i<=(Number(d)+2);i++){if(i==d){e+="<a href='#' class='pagorb selected'>"+i+"</a>"}else{e+="<a href='#' class='pagorb'>"+i+"</a>"}}e+="...<a href='#' class='pagorb'>"+a+"</a>";e+="</div>";e+="<div class='PageNumberLast'>";e+="<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'>Last</a>";e+="&nbsp;&nbsp;<a href='#' class='FirstLastPage' onclick='javascript:filterproductsby("+CategoryID+",1,"+a+");'><img src='../skins/skin_1/images/lastpagenumber.gif' height='10' width='15' alt='Last page' /></a>";e+="</div>";e+="</div>";if($("#BottomPageNumberContainer").html()==null){$("#BottomNumberContainer").html("<div id='BottomPageNumberContainer'></div>")}else{}$("#BottomPageNumberContainer").html(e);$(".pagorb").click(function(){updatePage(this);$(".pagorb").removeClass("selected");$(this).addClass("selected")})}}}}}function updatePage(c){var b=$(c).text();var a="/landingpageproductfilter.aspx?gv="+genderValue+"&pv="+priceValue+"&rv="+RatingValue+"&cid="+CategoryID+"&pg="+b+"&n="+CategoryName;filterproductsby(CategoryID,CategoryName,(b));generateRows(b);generateBottomRows(b)}function updateProductPrice(g,a){url="/updateproductprice.aspx?v="+g+"&clid="+a;var b;try{b=new XMLHttpRequest()}catch(f){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var d=fetch_unix_timestamp();var c=url;b.onreadystatechange=function(){if(b.readyState==4){document.getElementById("pricecontainer").innerHTML=b.responseText}};b.open("GET",c,true);b.send(null)}function refreshRentalRates(a){url="/GetRentalPrices.aspx?variantID="+a;var b;try{b=new XMLHttpRequest()}catch(f){try{b=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{b=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){alert("Your browser does not support AJAX.");return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var d=fetch_unix_timestamp();var c=url;b.onreadystatechange=function(){if(b.readyState==4){document.getElementById(divid).innerHTML=b.responseText}};b.open("GET",c,true);b.send(null)}function FindExistingProShopViaEmail(f){urlProShop="/getexistingproshop.aspx?email="+f;var a;try{a=new XMLHttpRequest()}catch(d){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(d){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){alert("Your browser does not support AJAX.");return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var c=fetch_unix_timestamp();var b=urlProShop;a.onreadystatechange=function(){if(a.readyState==4){document.getElementById(dividProShop).innerHTML=a.responseText}};a.open("GET",b,true);a.send(null)}function FindRentalCalendar(b){urlRentalCalendar="/getrentalcalendar.aspx?vid="+b;var a;try{a=new XMLHttpRequest()}catch(f){try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){alert("Your browser does not support AJAX.");return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var d=fetch_unix_timestamp();var c=urlRentalCalendar;a.onreadystatechange=function(){if(a.readyState==4){document.getElementById(dividRentalCalendar).innerHTML=a.responseText}};a.open("GET",c,true);a.send(null)}function ShowVariantImage(b,l,h,k,c){var j;j="";j=divProductPic+l;urlvariantimage="/getvariantimage.aspx?vid="+b+"&pid="+l+"&imagefilename="+h+"&sku="+k+"&alttext="+c;var d;try{d=new XMLHttpRequest()}catch(g){try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(g){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){alert("Your browser does not support AJAX.");return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var f=fetch_unix_timestamp();var a=urlvariantimage;d.onreadystatechange=function(){if(d.readyState==4){var o;var n;var e;var m;o=d.responseText.split("=");m=o[0].replace("&imagefilename","");if(d.responseText.indexOf("/variant/")>0){document.getElementById(j).onclick=function(){popuplargevariant(b,o[1])};document.getElementById("imgViewLarger").onclick=function(){popuplargevariant(b,o[1])}}else{if(o[1]!=undefined){document.getElementById(j).onclick=function(){popuplargeSetPopup(o[1])};document.getElementById("imgViewLarger").onclick=function(){popuplargeSetPopup(o[1])}}else{document.getElementById(j).onclick=function(){popuplargeSetPopup(h)};document.getElementById("imgViewLarger").onclick=function(){popuplargeSetPopup(h)}}}document.getElementById(j).src=m}};d.open("GET",a,true);d.send(null)}function addUpsellProduct(f,g,c,a){var d;var m;var h="div_upselladded_"+f;m="selupsellvariants_"+f;d=document.getElementById(m);if(g==1){urladdupsellproduct="/addtocart.aspx?VariantID="+d.value+"&Quantity=1&isAdminRefundOrder=0&RentalProduct=0&isUpsell=1&ProductID="+f+"&UpsellParentID="+a;window.location=urladdupsellproduct}else{urladdupsellproduct="/AddUpsellProduct.aspx?VariantID="+d.value+"&ProductID="+f+"&CustomerID="+c+"&UpsellParentID="+a;obj=document.getElementById(h);obj.style.display="";var j;try{j=new XMLHttpRequest()}catch(l){try{j=new ActiveXObject("Msxml2.XMLHTTP")}catch(l){try{j=new ActiveXObject("Microsoft.XMLHTTP")}catch(l){alert("Your browser does not support AJAX.");return false}}}fetch_unix_timestamp=function(){return parseInt(new Date().getTime().toString().substring(0,10))};var k=fetch_unix_timestamp();var b=urladdupsellproduct;j.onreadystatechange=function(){if(j.readyState==4){document.getElementById(h).innerHTML=j.responseText}};j.open("GET",b,true);j.send(null)}}function removeCompareProduct(b,a){url="/removecompareproduct.aspx?productid="+b;window.location=url};
