imgFadeObjects=new Object();imgFadeTimers=new Object();function imgFade(object,destOp,rate,delta){if(!document.all)return;if(object!="[object]"){setTimeout("imgFade("+object+","+destOp+","+rate+","+delta+")",0);return}clearTimeout(imgFadeTimers[object.sourceIndex]);diff=destOp-object.filters.alpha.opacity;direction=1;if(object.filters.alpha.opacity>destOp){direction=-1}delta=Math.min(direction*diff,delta);object.filters.alpha.opacity+=direction*delta;if(object.filters.alpha.opacity!=destOp){imgFadeObjects[object.sourceIndex]=object;imgFadeTimers[object.sourceIndex]=setTimeout("imgFade(imgFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate)}}function allimages(){this.length=allimages.arguments.length;for(var i=0;i<this.length;i++){this[i]=new Image();this[i].src=allimages.arguments[i]}}function doFormMail(form){if(!form){return}form.email.value=form.cust_email.value;form.realname.value=form.name.value;return true}function isInches(form){for(i=0;i<form.unit.length;i++){if(form.unit[i].checked){if(form.unit[i].value=='Inch'){return true}}}return false}function unitVMW(form){inch=isInches(form);sWidth=parseFloat(form.swidth.value);sLength=parseFloat(form.slength.value);sDepth=parseFloat(form.sdepth.value);if(sWidth>0){form.swidth.value=(inch?(sWidth/2.54):(sWidth*2.54))}if(sLength>0){form.slength.value=(inch?(sLength/2.54):(sLength*2.54))}if(sDepth>0){form.sdepth.value=(inch?(sDepth/2.54):(sDepth*2.54))}calcVMW(form)}function calcVMW(form){convert=1.0;div=3000.0;if(isInches(form)){convert=2.54}for(i=0;i<form.cu.length;i++){if(form.cu[i].checked){if(form.cu[i].value=='Int'){div=6000.0}break}}sWidth=parseFloat(form.swidth.value);sLength=parseFloat(form.slength.value);sDepth=parseFloat(form.sdepth.value);if(sWidth&&sLength&&sDepth){vmw=((sWidth*convert)*(sLength*convert)*(sDepth*convert))/div;form.volweight.value=(parseInt(vmw*100))/100}else{form.volweight.value=""}}function calcTT(form){countryId=form.sCountry.selectedIndex;sTimes=form.sCountry[countryId].value;docOption=-1;for(i=0;i<form.sType.length;i++){if(form.sType[i].checked){docOption=i*2}}sFrom=sTimes.charAt(docOption);sTo=sTimes.charAt(docOption+1);var sDays;if(sFrom==sTo){if(sFrom=="1"){sDays=sFrom+" day"}else{sDays=sFrom+" days"}}else{sDays=sFrom+"-"+sTo+" days"}form.transitTime.value=sDays}function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features)}function calendarPopup(form){country_id=form.country_id.options[form.country_id.selectedIndex].value;window.open('http://trydigevent.com/index.php?country_id='+country_id+'&do=search&cat_id=72&aid=160895','popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,alwaysRaised,dependent,titlebar=no,width=560,height=590')}
