function checkForm(){if($('f01').value.length<3){alert('Please provide your First Name on the form.');return false;}if($('f02').value.length<3){alert('Please provide your Last Name on the form.');return false;}if($('f03').value.length<4){alert('Please provide your Street address on the form.');return false;}if($('f04').value.length<3){alert('Please provide your City on the form.');return false;}if($('f05').value.length<2){alert('Please provide your State on the form.');return false;}if($('f06').value.length<5){alert('Please provide your Zip code on the form.');return false;}return true;}
function preloadImage(u){var im=new Image;im.src=u;}

window.onload=function(){
preloadImage('/images/buttonbg.png');
preloadImage('/images/buttonhover.png');
}
function zoomImage(){var s=$('picview').src,p=s.split('/');s=p[p.length-1];popupWindow('/preview.php/'+s,240,160);}
function previewImage(s){$('picview').src=s;}
function checkForm(){if($('f1').value.length<1){alert('Please provide your first name.');return false;}if($('f2').value.length<2){alert('Please provide your last name.');return false;}if($('f3').value.length<4){alert('Please provide your street address.');return false;}if($('f4').value.length<4){alert('Please provide your city.');return false;}if($('f5').value.length<2){alert('Please provide your state.');return false;}if($('f6').value.length<5){alert('Please provide your zip code.');return false;}if($('f7').value.length<5){alert('Please provide your email address.');return false;}return true;}
function prevItem(i){if(i>1)gotoUrl('/goto/'+(i-1)+'/');}
function nextItem(i){if(i<7)gotoUrl('/goto/'+(i+1)+'/');}

function doOrder(){
	if ($('shiptype').selectedIndex < 1) {
		alert('Please select how you would like your order shipped.');
	} else {
		gotoUrl('/placeorder/'+$('pt').checked+'/')	
	}
	
}

