var CmpIDS="";function CompareCheckClick(h){var g=h.id.replace("chkCompare","dvAccCompare");var e=document.getElementById(g);var d=e.getElementsByTagName("Div");var f="";for(var c=0;c<d.length;c++){if(d[c].className=="idContain"){f=d[c].id;break}}if(h.checked){if(CmpIDS.indexOf(f)<0){CmpIDS+=f+","}}else{CmpIDS=CmpIDS.replace(f+",","")}$(".msgCmpAll").hide();var a=CmpIDS.split(",");if(a.length==2){$("#"+a[0]+" .msgCheck").show()}else{if(a.length>2&&a.length<6){for(var b=0;b<a.length;b++){if(a[b]!=""){$("#"+a[b]+" .cmdCmpNow").show()}}}else{if(a.length>=6){for(var b=0;b<a.length;b++){if(a[b]!=""){$("#"+a[b]+" .msgUnCheck").show()}}}}}}function ComapreClick(){var a=CmpIDS.split(",");if(a.length>2&&a.length<6){window.location.href="Compare.aspx?accessories="+CmpIDS}}function IncrementValue(b){if(b!=null){var a=parseInt(b.value);a+=1;b.value=a}}function DecrementValue(b){if(b!=null){var a=parseInt(b.value);a-=1;if(a<0){a=0}b.value=a}}function AddAccessoryId(b,a){if(b!=null){b.value+=a+","}}function AddAccessoryFrmPopup(){__doPostBack("btnAddCart","","")}function AddAccessory(a,c,b){document.getElementById("hdnSelAccID").value=a;document.getElementById("hdnCurrentGrp").value=b;document.getElementById("hdnSelAccQuantity").value=document.getElementById(c).value;__doPostBack("btnAddCart","")}function RemoveAccessory(a,b){document.getElementById("hdnSelAccID").value=a;document.getElementById("hdnCurrentGrp").value=b;__doPostBack("btnRemoveCart","")}function DeleteAccessoryId(b,a){if(b!=null){b.value=b.value.replace(a+",")}}function ShowMessage(b){$(".divCompareNow").hide();$(".divMoreCompare").hide();$(".divRemoveCompare").hide();if(b!=null){var a=parseInt(b.value);if(a>0){if(a==1){$(".divMoreCompare").show()}else{if(a>=2&&a<=4){$(".divCompareNow").show()}else{$(".divRemoveCompare").show()}}}}}function dispPromoDesc(a){document.getElementById(a).style.display="block"}function hidePromoDesc(a){document.getElementById(a).style.display="none"}function SetCompareMsg(){$(".divCompareNow").hide();$(".divMoreCompare").hide();$(".divRemoveCompare").hide()}function ValidateCompare(){var a;if(document.forms[0].txtSelectedAccessoryCount!=null){a=parseInt(document.forms[0].txtSelectedAccessoryCount.value)}if(a!=null&&a>1){return true}else{alert("Please select more than one accessory to compare.");return false}}function setHeight(){var m=document.getElementById("hdnPriceTdIds").value;var s=[];var g=document.getElementById("hdnwarrantyTdIds").value;var f=[];var C=document.getElementById("hdnTalkTimeTdIds").value;var B=[];var w=document.getElementById("hdnStandByTdIds").value;var b=[];var y=document.getElementById("hdnWeightTdIds").value;var k=[];var p=document.getElementById("hdnDimensionTdIds").value;var l=[];var v=document.getElementById("hdnTechnologyTdIds").value;var q=[];var e=document.getElementById("hdnWearingTdIds").value;var t=[];var u=document.getElementById("hdnIncludeAccTdIds").value;var o=[];var a=document.getElementById("hdnFrequencyOfUseTdIds").value;var A=[];var n=0;var h;var x=[];var d;if(m!=null){s=m.split(";");if(s!=null&&s!=""){for(h=0;h<s.length-1;h++){var c=s[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=s.length;for(i=0;i<r-1;){if(i!=r){var c=s[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colPricing").style.height=n+"px"}}}var x=[];if(g!=null){f=g.split(";");if(f!=null&&f!=""){for(h=0;h<f.length-1;h++){var c=f[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=f.length;for(i=0;i<r-1;){if(i!=r){var c=f[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colWarrantyInformation").style.height=n+"px"}}}var x=[];if(C!=null){B=C.split(";");if(B!=null&&B!=""){for(h=0;h<B.length-1;h++){var c=B[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=B.length;for(i=0;i<r-1;){if(i!=r){var c=B[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colTalkTime").style.height=n+"px"}}}var x=[];if(w!=null){b=w.split(";");if(b!=null&&b!=""){for(h=0;h<b.length-1;h++){var c=b[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=b.length;for(i=0;i<r-1;){if(i!=r){var c=b[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colStandbyTime").style.height=n+"px"}}}var x=[];if(y!=null){k=y.split(";");if(k!=null&&k!=""){for(h=0;h<k.length-1;h++){var c=k[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=k.length;for(i=0;i<r-1;){if(i!=r){var c=k[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colWeight").style.height=n+"px"}}}var x=[];if(p!=null){l=p.split(";");if(l!=null&&l!=""){for(h=0;h<l.length-1;h++){var c=l[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=l.length;for(i=0;i<r-1;){if(i!=r){var c=l[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colDimensions").style.height=n+"px"}}}var x=[];if(v!=null){q=v.split(";");if(q!=null&&q!=""){for(h=0;h<q.length-1;h++){var c=q[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=q.length;for(i=0;i<r-1;){if(i!=r){var c=q[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colTechnologies").style.height=n+"px"}}}var x=[];if(e!=null){t=e.split(";");if(t!=null&&t!=""){for(h=0;h<t.length-1;h++){var c=t[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=t.length;for(i=0;i<r-1;){if(i!=r){var c=t[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colWearingStyle").style.height=n+"px"}}}var x=[];if(u!=null){o=u.split(";");if(o!=null&&o!=""){for(h=0;h<o.length-1;h++){var c=o[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=o.length;for(i=0;i<r-1;){if(i!=r){var c=o[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colIncludedAccessories").style.height=n+"px"}}}var x=[];if(a!=null){A=a.split(";");if(A!=null&&A!=""){for(h=0;h<A.length-1;h++){var c=A[h];x.push(parseInt(document.getElementById(c).offsetHeight))}n=maxValue(x);if(n){n=parseInt(n);i=0;var r=A.length;for(i=0;i<r-1;){if(i!=r){var c=A[i];document.getElementById(c).style.height=n+"px"}i=i+1}document.getElementById("colFrequencyofUse").style.height=n+"px"}}}document.getElementById("hdnPriceTdIds").value="";document.getElementById("hdnwarrantyTdIds").value="";document.getElementById("hdnTalkTimeTdIds").value="";document.getElementById("hdnStandByTdIds").value="";document.getElementById("hdnWeightTdIds").value="";document.getElementById("hdnDimensionTdIds").value="";document.getElementById("hdnTechnologyTdIds").value="";document.getElementById("hdnWearingTdIds").value="";document.getElementById("hdnIncludeAccTdIds").value="";document.getElementById("hdnFrequencyOfUseTdIds").value=""}maxValue=function(a){mxm=a[0];for(i=0;i<a.length;i++){if(a[i]>mxm){mxm=a[i]}}return mxm};function correctPNG(){if(isIE6()){for(var g=0;g<document.images.length;g++){var d=document.images[g];var f=d.src.toUpperCase();if(f.substring(f.length-3,f.length)=="PNG"){var b=(d.id)?"id='"+d.id+"' ":"";var e=(d.className)?"class='"+d.className+"' ":"";var h=(d.title)?"title='"+d.title+"' ":"title='"+d.alt+"' ";var c="display:inline-block;"+d.style.cssText;if(d.align=="left"){c="float:left;"+c}if(d.align=="right"){c="float:right;"+c}if(d.parentElement.href){c="cursor:hand;"+c}var a="<span "+b+e+h+' style="width:'+d.width+"px; height:"+d.height+"px;"+c+";filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+d.src+"', sizingMethod='scale');\"></span>";d.outerHTML=a;g=g-1}}}}if(isIE6()){window.attachEvent("onload",correctPNG)}function isIE6(){var a;if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){a=new Number(RegExp.$1)}if(navigator.appName=="Microsoft Internet Explorer"&&a<7){return true}return false}function load(a){if(document.images){names=load.arguments;pictures=new Array;for(z=1;z<names.length;z++){pictures[z]=new Image;pictures[z].src=a+names[z]}}}function togglePlanType(a,b){$("."+a).hide();$("."+b).show()}function SetTab(a){if(a=="True"){togglePlanType("clsTab2","clsTab1")}else{togglePlanType("clsTab1","clsTab2")}};
