function checkCush( ) {

var chklngth = Math.round(document.form1.Lngth.value)
var chkback = Math.round(document.form1.back.value)
var chkplength = Math.round(document.form1.partial.value)
var chklside = Math.round(document.form1.lside.value)
var chkrside = Math.round(document.form1.rside.value)
var chkwidth = Math.round(document.form1.width.value)
 
if (document.form1.Lngth.value.length <1 ) 
{alert ("Please put a value in the 'length' box") 
       return false}
if (document.form1.width.value.length <1 ) 
{alert ("Please put a value in the 'width' box") 
       return false}  
if (document.form1.depth.value.length <1 ) 
{alert ("Please put a value in the 'depth' box") 
       return false} 
if (document.form1.back.value.length <1 ) 
{alert ("Please put a value in the 'back' box") 
       return false} 
if (document.form1.partial.value.length <1 ) 
{alert ("Please put a value in the 'partial length' box") 
       return false} 
if (document.form1.rside.value.length <1 ) 
{alert ("Please put a value in the 'R.side' box") 
       return false} 
if (document.form1.lside.value.length <1 ) 
{alert ("Please put a value in the 'L.side' box") 
       return false} 
if (chkback >= chklngth) 
{alert ("the measurement 'Back' must be less than 'Length'") 
       return false} 
if (chkplength >= chklngth) 
{alert ("the measurement 'Partial Length' must be less than 'Length'") 
       return false} 
if (chklside >= chkwidth) 
{alert ("the measurement 'L.Side' must be less than 'Width'") 
       return false} 
if (chkrside >= chkwidth) 
{alert ("the measurement 'R.Side' must be less than 'Width'") 
       return false} 

document.form1.submit()
return true
}


function boxChangecush(x){
if (x==3) {
document.form1.firmness.selectedIndex=1 ;
document.form1.firmness.disabled=true
}
else {
document.form1.firmness.disabled=false
}
}


function boxChangewrap(x){
if (x>0) {
document.form1.stocking.selectedIndex=1 ;
document.form1.stocking.disabled=true
}
else {
document.form1.stocking.disabled=false ;
document.form1.stocking.selectedIndex=0
}
}
