function projrequest(vprojid){document.getElementById('loaderinfo').style.display = "";http('POST','cw2/projestidata.cfm?projid='+vprojid,projresponse);};function updatepage(){document.getElementById('loaderinfo').style.display = "";if(document.all.measmodestatus.value=='off')http('POST','cw2/projestidata.cfm?projid='+document.all.projtype.value+'&gaugenum='+document.all.gaugenum.value+'&measmode=inches&projsize='+document.all.projsize.value+'&yarntype='+document.all.yarntype.value,projresponse);else{if(document.all.measmode[0].checked)http('POST','cw2/projestidata.cfm?projid='+document.all.projtype.value+'&gaugenum='+document.all.gaugenum.value+'&measmode=inches&projsize='+document.all.projsize.value+'&yarntype='+document.all.yarntype.value,projresponse);else http('POST','cw2/projestidata.cfm?projid='+document.all.projtype.value+'&gaugenum='+document.all.gaugenum.value+'&measmode=metric&projsize='+document.all.projsize.value+'&yarntype='+document.all.yarntype.value,projresponse);};};function projresponse(obj){document.getElementById('projimage').innerHTML=obj.projimage;document.getElementById('projgauge').innerHTML=obj.projgauge;document.getElementById('projmeasurement').innerHTML=obj.projmeasurement;document.getElementById('gaugeimage').innerHTML=obj.gaugeimage;document.getElementById('meastypeimage').innerHTML=obj.meastypeimage;document.getElementById('yarntypes').innerHTML=obj.yarntypes;document.getElementById('gaugeinfo').innerHTML=obj.gaugeinfo;if(obj.showprodlist=='yes'){document.getElementById('prodlist').style.display="";document.getElementById('prodlist').innerHTML=obj.prodlist;};if(obj.showamounts=='yes'){document.getElementById('amountsarea').style.display="";document.getElementById('numofyards').innerHTML=obj.numofyards;};document.getElementById('loaderinfo').style.display = "none";};function updatepagesub(){if(document.all.measmodestatus.value=='off')window.location.href='#request.thispage#?projid='+document.all.projtype.value+'&gaugenum='+document.all.gaugenum.value+'&measmode=inches&projsize='+document.all.projsize.value+'&yarntype='+document.all.yarntype.value;else{if(document.all.measmode[0].checked)window.location.href='#request.thispage#?projid='+document.all.projtype.value+'&gaugenum='+document.all.gaugenum.value+'&measmode=inches&projsize='+document.all.projsize.value+'&yarntype='+document.all.yarntype.value;else window.location.href='#request.thispage#?projid='+document.all.projtype.value+'&gaugenum='+document.all.gaugenum.value+'&measmode=metric&projsize='+document.all.projsize.value+'&yarntype='+document.all.yarntype.value;};};function updateskeinamount(vskeinamount,vprodinfo,vprodimage,vprodurl,vprodbrandimage,vbrandimagewidth){document.all.skeinarea.style.display="";if(vprodbrandimage!=''){if(vbrandimagewidth==0)document.all.prodbrandimage.innerHTML='<img src="'+vprodbrandimage+'" alt="" border="0">';else document.all.prodbrandimage.innerHTML='<img src="'+vprodbrandimage+'" alt="" border="0" width="'+vbrandimagewidth+'">';};document.all.prodimage.innerHTML='<img src="'+vprodimage+'" alt="" border="0">';document.all.prodinfo.innerHTML=vprodinfo;if(vskeinamount==0)document.all.skeinamount.innerHTML='';else if(vskeinamount==1)document.all.skeinamount.innerHTML=vskeinamount+' Skein';else document.all.skeinamount.innerHTML=vskeinamount+' Skeins';document.all.purchaseitem.innerHTML='<input type="button" value="Continue &raquo;" class="formButtonMain" onClick="window.location.href='+'\''+vprodurl+'&estqty='+vskeinamount+'\''+'">';};

