Forum Moderators: open
<script language="javascript" type="text/javascript">
function chMd()
{
if(document.getElementById('attrib-3-3').checked = true) {
document.getElementById('attrib-8-45').disabled = true;
document.getElementById('attrib-8-44').disabled = true;
document.getElementById('attrib-9-49').disabled = true;
document.getElementById('attrib-9-50').disabled = true;
}
if(document.getElementById('attrib-3-3').checked = false) {
document.getElementById('attrib-8-45').enabled = true;
document.getElementById('attrib-8-44').enabled = true;
document.getElementById('attrib-9-49').enabled = true;
document.getElementById('attrib-9-50').enabled = true;
}
}
</script>
<form name="cart_quantity" action="ten-packs-p-28.html?action=add_product&number_of_uploads=0" method="post" enctype="multipart/form-data">
<div id="productAttributes">
<h4 class="optionName back">First 5</h4>
<div class="back">
<input type="radio" onclick="chMd()" name="id[8]" value="44" checked="checked" id="attrib-8-44" /><label class="attribsRadioButton zero" for="attrib-8-44">Five Soft</label><br />
<input type="radio" onclick="chMd()" name="id[8]" value="45" id="attrib-8-45" /><label class="attribsRadioButton zero" for="attrib-8-45">Five Stalky</label><br />
<input type="radio" onclick="chMd()" name="id[8]" value="46" id="attrib-8-46" /><label class="attribsRadioButton zero" for="attrib-8-46">Five Straw</label><br />
<input type="radio" onclick="chMd()" name="id[8]" value="47" id="attrib-8-47" /><label class="attribsRadioButton zero" for="attrib-8-47">Five Plastic Hay ( -£2.50 )</label><br />
<input type="radio" onclick="chMd()" name="id[8]" value="48" id="attrib-8-48" /><label class="attribsRadioButton zero" for="attrib-8-48">Five Plastic Straw ( -£2.50 )</label><br />
</div>
<h4 class="optionName back">Second 5</h4>
<div class="back">
<input type="radio" onclick="chMd()" name="id[9]" value="49" checked="checked" id="attrib-9-49" /><label class="attribsRadioButton zero" for="attrib-9-49">Five Soft</label><br />
<input type="radio" onclick="chMd()" name="id[9]" value="50" id="attrib-9-50" /><label class="attribsRadioButton zero" for="attrib-9-50">Five Stalky</label><br />
<input type="radio" onclick="chMd()" name="id[9]" value="51" id="attrib-9-51" /><label class="attribsRadioButton zero" for="attrib-9-51">Five Straw</label><br />
<input type="radio" onclick="chMd()" name="id[9]" value="52" id="attrib-9-52" /><label class="attribsRadioButton zero" for="attrib-9-52">Five Plastic Hay ( -£2.50 )</label><br />
<input type="radio" onclick="chMd()" name="id[9]" value="53" id="attrib-9-53" /><label class="attribsRadioButton zero" for="attrib-9-53">Five Plastic Straw ( -£2.50 )</label><br />
</div>
<h4 class="optionName back">Sack Type</h4>
<div class="back">
<input type="radio" onclick="chMd()" name="id[3]" value="3" id="attrib-3-3" /><label class="attribsRadioButton zero" for="attrib-3-3">Plastic</label><br />
<input type="radio" onclick="chMd()" name="id[3]" value="1" id="attrib-3-1" /><label class="attribsRadioButton zero" for="attrib-3-1">Hessian Sacks ( +£2.00 )</label><br />
<input type="radio" onclick="chMd()" name="id[3]" value="2" checked="checked" id="attrib-3-2" /><label class="attribsRadioButton zero" for="attrib-3-2">Polyprop Sacks</label><br />
</div>
</div>
</form>
if(document.getElementById('attrib-3-3').checked = true) {
if(document.getElementById('attrib-3-3').checked == true) {
if(document.getElementById('attrib-3-3').checked) {
if(document.getElementById('attrib-3-3').checked = false) {
if(!document.getElementById('attrib-3-3').checked) {
else {
document.getElementById('attrib-8-45').enabled = true;
document.getElementById('attrib-8-44').enabled = true;
document.getElementById('attrib-9-49').enabled = true;
document.getElementById('attrib-9-50').enabled = true;
document.getElementById('attrib-8-45').disabled = false;
document.getElementById('attrib-8-44').disabled = false;
document.getElementById('attrib-9-49').disabled = false;
document.getElementById('attrib-9-50').disabled = false;
Unfortunately I have had to add onclick="chMd()" to every single input button
<script type="text/javascript">
function chMd() {
var get = document.getElementById;
(get('attrib-8-45')).disabled = (get('attrib-8-44')).disabled = (get('attrib-9-49')).disabled = (get('attrib-9-50')).disabled = ((get('attrib-3-3')).checked);
}
</script>
window.onload = function () {
var productAttributes = document.getElementById('productAttributes');
productAttributes.onclick = chMd;
}
var addEvent = function (el, ev, fn) {
if (el.addEventListener) {
el.addEventListener(ev, fn, false);
} else if (el.attachEvent) {
el.attachEvent('on' + ev, fn);
} else {
el['on' + ev] = fn;
}
};
addEvent(window, 'load', function () {
var productAttributes = document.getElementById('productAttributes');
addEvent(productAttributes, 'click', chMd);
});
function chMd()
{
var get = document.getElementById; (get('attrib-2-4')).disabled = (get('attrib-2-5')).disabled = (get('attrib-2-6')).disabled = (get('attrib-3-9')).disabled = (get('attrib-3-10')).disabled = (get('attrib-3-11')).disabled = ((get('attrib-1-2')).checked);
var get = document.getElementById; (get('attrib-2-7')).disabled = (get('attrib-2-8')).disabled = (get('attrib-3-12')).disabled = (get('attrib-3-13')).disabled = ((get('attrib-1-1')).checked);
var get = document.getElementById; (get('attrib-4-14')).disabled = (get('attrib-4-15')).disabled = (get('attrib-4-16')).disabled = ((get('attrib-1-2')).checked);
var get = document.getElementById; (get('attrib-4-17')).disabled = (get('attrib-4-18')).disabled = ((get('attrib-1-1')).checked);
= ((get('attrib-1-1')).checked);
= ((get('attrib-1-1')).checked) OR = ((get('attrib-1-1')).checked);
function chMd()
{
var get = document.getElementById;
(get('attrib-2-4')).disabled = (get('attrib-2-5')).disabled = (get('attrib-2-6')).disabled = (get('attrib-3-9')).disabled = (get('attrib-3-10')).disabled = (get('attrib-3-11')).disabled = ((get('attrib-1-2')).checked);
(get('attrib-2-7')).disabled = (get('attrib-2-8')).disabled = (get('attrib-3-12')).disabled = (get('attrib-3-13')).disabled = ((get('attrib-1-1')).checked);
(get('attrib-4-14')).disabled = (get('attrib-4-15')).disabled = (get('attrib-4-16')).disabled = ((get('attrib-1-2')).checked);
(get('attrib-4-17')).disabled = (get('attrib-4-18')).disabled = ((get('attrib-1-1')).checked);
}
... = ((get('attrib-1-1')).checked || (get('attrib-1-3')).checked);
function chMd()
{
var get = document.getElementById,
attrib-2-4 = (get('attrib-2-4') || {}),
attrib-2-5 = (get('attrib-2-5') || {}),
...
attrib-1-2 = (get('attrib-2-5') || {checked:false};
attrib-2-4.disabled = attrib-2-5.disabled = ... = attrib-1-2.checked;
...
}
function chMd()
{
//first page
var get = document.getElementById; (get('attrib-2-4')).disabled = (get('attrib-2-5')).disabled = (get('attrib-2-6')).disabled = ((get('attrib-1-2')).checked);
(get('attrib-2-7')).disabled = (get('attrib-2-8')).disabled = ((get('attrib-1-1')).checked || (get('attrib-1-3')).checked);
(get('attrib-3-9')).disabled = (get('attrib-3-10')).disabled = (get('attrib-3-11')).disabled = ((get('attrib-5-20')).checked);
(get('attrib-3-12')).disabled = (get('attrib-3-13')).disabled = ((get('attrib-5-19')).checked || (get('attrib-5-21')).checked);
//second page
(get('attrib-4-17')).disabled = (get('attrib-4-18')).disabled = ((get('attrib-1-1')).checked || (get('attrib-1-3')).checked);
(get('attrib-4-14')).disabled = (get('attrib-4-15')).disabled = (get('attrib-4-16')).disabled = ((get('attrib-1-2')).checked);
}
<script language="javascript" type="text/javascript"><!--
/*
Slimbox v1.67 - The ultimate lightweight Lightbox clone
(c) 2007-2008 Christophe Beyls <http://www.digitalia.be>
MIT-style license.
*/
var Slimbox;(function(){var E=window,n=Browser.Engine.trident4,t,g,F=-1,v,D,u,x,L,r,m={},s=new Image(),J=new Image(),H,a,h,p,I,e,G,c,z,K,w,i,d,B;E.addEvent("domready",function(){$(document.body).adopt($$(H=new Element("div",{id:"lbOverlay"}),a=new Element("div",{id:"lbCenter"}),G=new Element("div",{id:"lbBottomContainer"})).setStyle("display","none"));h=new Element("div",{id:"lbImage"}).injectInside(a).adopt(p=new Element("div"),I=new Element("a",{id:"lbPrevLink",href:"#",title:"Previous",styles:{"background":"transparent url(includes/templates/premium1c/buttons/english/zen_lightbox/prevlabel.gif) no-repeat 0 top"}}).addEvent("click",A),e=new Element("a",{id:"lbNextLink",href:"#",title:"Next",styles:{"background":"transparent url(includes/templates/premium1c/buttons/english/zen_lightbox/nextlabel.gif) no-repeat 100% top"}}).addEvent("click",f));c=new Element("div",{id:"lbBottom"}).injectInside(G).adopt(new Element("a",{id:"lbCloseLink",href:"#",title:"Close",styles:{"background":"transparent url(includes/templates/premium1c/buttons/english/zen_lightbox/closelabel.gif) no-repeat center"}}).addEvent("click",C),z=new Element("div",{id:"lbCaption"}),K=new Element("div",{id:"lbNumber"}),new Element("div",{styles:{clear:"both"}}))});Slimbox={open:function(O,N,M){t=$extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M||{});w=new Fx.Tween(H,{property:"opacity",duration:t.overlayFadeDuration});i=new Fx.Morph(a,$extend({duration:t.resizeDuration,link:"chain"},t.resizeTransition?{transition:t.resizeTransition}:{}));d=new Fx.Tween(h,{property:"opacity",duration:t.imageFadeDuration,onComplete:j});B=new Fx.Tween(c,{property:"margin-top",duration:t.captionAnimationDuration});if(typeof O=="string"){O=[[O,N]];N=0}x=E.getScrollTop()+(E.getHeight()/2);L=t.initialWidth;r=t.initialHeight;a.setStyles({top:Math.max(0,x-(r/2)),width:L,height:r,marginLeft:-L/2,display:""});u=n||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(u){H.style.position="absolute"}w.set(0).start(t.overlayOpacity);y();l(1);g=O;t.loop=t.loop&&(g.length>1);return b(N)}};Element.implement({slimbox:function(M,N){$$(this).slimbox(M,N);return this}});Elements.implement({slimbox:function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;N.removeEvents("click").addEvent("click",function(){var Q=N.filter(O,this);return Slimbox.open(Q.map(P),Q.indexOf(this),M)});return N}});function y(){var M=E.getScroll(),N=E.getSize();$$(a,G).setStyle("left",M.x+(N.x/2));if(u){H.setStyles({left:M.x,top:M.y,width:N.x,height:N.y})}}function l(M){["object",n?"select":"embed"].forEach(function(O){Array.forEach(document.getElementsByTagName(O),function(P){if(M){P._slimbox=P.style.visibility}P.style.visibility=M?"hidden":P._slimbox})});H.style.display=M?"":"none";var N=M?"addEvent":"removeEvent";E[N]("scroll",y)[N]("resize",y);document[N]("keydown",o)}function o(N){var M=N.code;return t.closeKeys.contains(M)?C():t.nextKeys.contains(M)?f():t.previousKeys.contains(M)?A():false}function A(){return b(v)}function f(){return b(D)}function b(M){if(M>=0){F=M;v=(F||(t.loop?g.length:0))-1;D=((F+1)%g.length)||(t.loop?0:-1);q();a.className="lbLoading";m=new Image();m.onload=k;m.src=g[M][0]}return false}function k(){a.className="";d.set(0);h.setStyles({backgroundImage:"url("+m.src+")",display:""});p.setStyle("width",m.width);$$(p,I,e).setStyle("height",m.height);z.set("html",g[F][1]||"");K.set("html",(((g.length>1)&&t.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,g.length));if(v>=0){s.src=g[v][0]}if(D>=0){J.src=g[D][0]}L=h.offsetWidth;r=h.offsetHeight;var N=Math.max(0,x-(r/2)),M;if(a.clientHeight!=r){i.start({height:r,top:N})}if(a.clientWidth!=L){i.start({width:L,marginLeft:-L/2})}M=function(){G.setStyles({width:L,top:N+r,marginLeft:-L/2,visibility:"hidden",display:""});d.start(1)};if(i.check(M)){M()}}function j(){if(v>=0){I.style.display=""}if(D>=0){e.style.display=""}B.set(-c.offsetHeight).start(0);G.style.visibility=""}function q(){m.onload=$empty;m.src=s.src=J.src="";i.cancel();d.cancel();B.cancel();$$(I,e,h,G).setStyle("display","none")}function C(){if(F>=0){q();F=v=D=-1;a.style.display="none";w.cancel().chain(l).start(0)}return false}})();
/* Zen Lightbox v1.5 2008-12-18 */
Slimbox.scanPage = function() {
$$(document.links).filter(function(el) {
return el.rel && el.rel.test(/^lightbox/i);
}).slimbox({overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]}, null, function(el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
});
};
window.addEvent("domready", Slimbox.scanPage);
//--></script>
<script type="text/javascript" src="includes/templates/premium1c/jscript/zen_lightbox_mootools_custom.js"></script>
window.addEvent('load', function () {
var productAttributes = document.getElementById('productAttributes');
productAttributes.addEvent('click', chMd);
});
<script type="text/javascript" src="includes/modules/pages/product_info/jscript_textarea_counter.js"></script>
<script type="text/javascript">
var addEvent = function (el, ev, fn) {
if (el.addEventListener) {
el.addEventListener(ev, fn, false);
} else if (el.attachEvent) {
el.attachEvent('on' + ev, fn);
} else {
el['on' + ev] = fn;
}
};
function chMd()
{
var get = document.getElementById; (get('attrib-2-4')).disabled = (get('attrib-2-5')).disabled = (get('attrib-2-6')).disabled = ((get('attrib-1-2')).checked);
(get('attrib-2-7')).disabled = (get('attrib-2-8')).disabled = ((get('attrib-1-1')).checked || (get('attrib-1-3')).checked);
(get('attrib-3-9')).disabled = (get('attrib-3-10')).disabled = (get('attrib-3-11')).disabled = ((get('attrib-5-20')).checked);
(get('attrib-3-12')).disabled = (get('attrib-3-13')).disabled = ((get('attrib-5-19')).checked || (get('attrib-5-21')).checked);
(get('attrib-4-17')).disabled = (get('attrib-4-18')).disabled = ((get('attrib-1-1')).checked || (get('attrib-1-3')).checked);
(get('attrib-4-14')).disabled = (get('attrib-4-15')).disabled = (get('attrib-4-16')).disabled = ((get('attrib-1-2')).checked);
}
</script>
<script language="javascript" type="text/javascript"><!--
function popupWindow(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150')
}
function popupWindowPrice(url) {
window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
}
//--></script>
<script type="text/javascript" src="includes/templates/premium1c/jscript/zen_lightbox_mootools_custom.js"></script>
<script type="text/javascript">
window.addEvent('load', function () {
var productAttributes = document.getElementById('productAttributes');
productAttributes.addEvent('click', chMd);
});
</script>
<script language="javascript" type="text/javascript"><!--
/*
Slimbox v1.67 - The ultimate lightweight Lightbox clone
(c) 2007-2008 Christophe Beyls <http://www.digitalia.be>
MIT-style license.
*/
var Slimbox;(function(){var E=window,n=Browser.Engine.trident4,t,g,F=-1,v,D,u,x,L,r,m={},s=new Image(),J=new Image(),H,a,h,p,I,e,G,c,z,K,w,i,d,B;E.addEvent("domready",function(){$(document.body).adopt($$(H=new Element("div",{id:"lbOverlay"}),a=new Element("div",{id:"lbCenter"}),G=new Element("div",{id:"lbBottomContainer"})).setStyle("display","none"));h=new Element("div",{id:"lbImage"}).injectInside(a).adopt(p=new Element("div"),I=new Element("a",{id:"lbPrevLink",href:"#",title:"Previous",styles:{"background":"transparent url(includes/templates/premium1c/buttons/english/zen_lightbox/prevlabel.gif) no-repeat 0 top"}}).addEvent("click",A),e=new Element("a",{id:"lbNextLink",href:"#",title:"Next",styles:{"background":"transparent url(includes/templates/premium1c/buttons/english/zen_lightbox/nextlabel.gif) no-repeat 100% top"}}).addEvent("click",f));c=new Element("div",{id:"lbBottom"}).injectInside(G).adopt(new Element("a",{id:"lbCloseLink",href:"#",title:"Close",styles:{"background":"transparent url(includes/templates/premium1c/buttons/english/zen_lightbox/closelabel.gif) no-repeat center"}}).addEvent("click",C),z=new Element("div",{id:"lbCaption"}),K=new Element("div",{id:"lbNumber"}),new Element("div",{styles:{clear:"both"}}))});Slimbox={open:function(O,N,M){t=$extend({loop:false,overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]},M||{});w=new Fx.Tween(H,{property:"opacity",duration:t.overlayFadeDuration});i=new Fx.Morph(a,$extend({duration:t.resizeDuration,link:"chain"},t.resizeTransition?{transition:t.resizeTransition}:{}));d=new Fx.Tween(h,{property:"opacity",duration:t.imageFadeDuration,onComplete:j});B=new Fx.Tween(c,{property:"margin-top",duration:t.captionAnimationDuration});if(typeof O=="string"){O=[[O,N]];N=0}x=E.getScrollTop()+(E.getHeight()/2);L=t.initialWidth;r=t.initialHeight;a.setStyles({top:Math.max(0,x-(r/2)),width:L,height:r,marginLeft:-L/2,display:""});u=n||(H.currentStyle&&(H.currentStyle.position!="fixed"));if(u){H.style.position="absolute"}w.set(0).start(t.overlayOpacity);y();l(1);g=O;t.loop=t.loop&&(g.length>1);return b(N)}};Element.implement({slimbox:function(M,N){$$(this).slimbox(M,N);return this}});Elements.implement({slimbox:function(M,P,O){P=P||function(Q){return[Q.href,Q.title]};O=O||function(){return true};var N=this;N.removeEvents("click").addEvent("click",function(){var Q=N.filter(O,this);return Slimbox.open(Q.map(P),Q.indexOf(this),M)});return N}});function y(){var M=E.getScroll(),N=E.getSize();$$(a,G).setStyle("left",M.x+(N.x/2));if(u){H.setStyles({left:M.x,top:M.y,width:N.x,height:N.y})}}function l(M){["object",n?"select":"embed"].forEach(function(O){Array.forEach(document.getElementsByTagName(O),function(P){if(M){P._slimbox=P.style.visibility}P.style.visibility=M?"hidden":P._slimbox})});H.style.display=M?"":"none";var N=M?"addEvent":"removeEvent";E[N]("scroll",y)[N]("resize",y);document[N]("keydown",o)}function o(N){var M=N.code;return t.closeKeys.contains(M)?C():t.nextKeys.contains(M)?f():t.previousKeys.contains(M)?A():false}function A(){return b(v)}function f(){return b(D)}function b(M){if(M>=0){F=M;v=(F||(t.loop?g.length:0))-1;D=((F+1)%g.length)||(t.loop?0:-1);q();a.className="lbLoading";m=new Image();m.onload=k;m.src=g[M][0]}return false}function k(){a.className="";d.set(0);h.setStyles({backgroundImage:"url("+m.src+")",display:""});p.setStyle("width",m.width);$$(p,I,e).setStyle("height",m.height);z.set("html",g[F][1]||"");K.set("html",(((g.length>1)&&t.counterText)||"").replace(/{x}/,F+1).replace(/{y}/,g.length));if(v>=0){s.src=g[v][0]}if(D>=0){J.src=g[D][0]}L=h.offsetWidth;r=h.offsetHeight;var N=Math.max(0,x-(r/2)),M;if(a.clientHeight!=r){i.start({height:r,top:N})}if(a.clientWidth!=L){i.start({width:L,marginLeft:-L/2})}M=function(){G.setStyles({width:L,top:N+r,marginLeft:-L/2,visibility:"hidden",display:""});d.start(1)};if(i.check(M)){M()}}function j(){if(v>=0){I.style.display=""}if(D>=0){e.style.display=""}B.set(-c.offsetHeight).start(0);G.style.visibility=""}function q(){m.onload=$empty;m.src=s.src=J.src="";i.cancel();d.cancel();B.cancel();$$(I,e,h,G).setStyle("display","none")}function C(){if(F>=0){q();F=v=D=-1;a.style.display="none";w.cancel().chain(l).start(0)}return false}})();
/* Zen Lightbox v1.5 2008-12-18 */
Slimbox.scanPage = function() {
$$(document.links).filter(function(el) {
return el.rel && el.rel.test(/^lightbox/i);
}).slimbox({overlayOpacity:0.8,overlayFadeDuration:400,resizeDuration:400,resizeTransition:false,initialWidth:250,initialHeight:250,imageFadeDuration:400,captionAnimationDuration:400,counterText:"Image {x} of {y}",closeKeys:[27,88,67],previousKeys:[37,80],nextKeys:[39,78]}, null, function(el) {
return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
});
};
window.addEvent("domready", Slimbox.scanPage);
//--></script>
<script type="text/javascript" src="includes/templates/premium1c/jscript/zen_lightbox_mootools_custom.js"></script>
<script type="text/javascript" src="includes/modules/pages/product_info/jscript_textarea_counter.js"></script>
<script type="text/javascript">
function popupWindow(url) {
window.open(url, 'popupWindow',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150');
}
function popupWindowPrice(url) {
window.open(url, 'popupWindow',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=400,screenX=150,screenY=150,top=150,left=150')
}
</script>
<script type="text/javascript">
function chMd() {
// Identify what page we are on
if ( PAGE1CONDITION ){ // page 1
($('attrib-2-4')).disabled = ($('attrib-2-5')).disabled = ($('attrib-2-6')).disabled = (($('attrib-1-2')).checked);
($('attrib-2-7')).disabled = ($('attrib-2-8')).disabled = (($('attrib-1-1')).checked || ($('attrib-1-3')).checked);
($('attrib-3-9')).disabled = ($('attrib-3-10')).disabled = ($('attrib-3-11')).disabled = (($('attrib-5-20')).checked);
($('attrib-3-12')).disabled = ($('attrib-3-13')).disabled = (($('attrib-5-19')).checked || ($('attrib-5-21')).checked);
}
else { // page 2
($('attrib-4-17')).disabled = ($('attrib-4-18')).disabled = (($('attrib-1-1')).checked || ($('attrib-1-3')).checked);
($('attrib-4-14')).disabled = ($('attrib-4-15')).disabled = ($('attrib-4-16')).disabled = (($('attrib-1-2')).checked);
}
}
window.addEvent('load', function () {
var productAttributes = document.getElementById('productAttributes');
productAttributes.addEvent('click', chMd);
});
</script>
<script type="text/javascript">
/*
Slimbox v1.67 - The ultimate lightweight Lightbox clone
(c) 2007-2008 Christophe Beyls <http://www.digitalia.be>
MIT-style license.
*/
// OMITTED FOR EXAMPLE PURPOSE ONLY
// ...
window.addEvent("domready", Slimbox.scanPage);
</script>
productAttributes.addEvent('click', chMd);