function tellcost()
{
 var quiltingtype = window.document.price.quiltingtype.value
 var starttext = 'It will cost '
 var from = 'from '
 var cash = '$'
 var endtext = ' to quilt your quilt. '
 var length = window.document.price.length.value
 var width = window.document.price.width.value
 var to = ' to '
if(length=='Length of your quilt in inches'||length==""||length=='null')
{
alert('please enter a valid length')
var stop=2
}  
if(width=='Width of your quilt in inches'||width==""||width=='null')
{
alert('please enter a valid width')
var stop=2
}  
if(quiltingtype==1){
	if (stop!=2){
	var total11 = length*width*.0125
	var outtext = starttext + cash + total11 + endtext
	alert(outtext)
	}
}
if(quiltingtype==2){
	if (stop!=2){
	var total21 = length*width*.015
	var total22 = length*width*.0175
	outtext = starttext + from + cash + total12 + to + cash + total22 + endtext
	alert(outtext)
	}
}
if(quiltingtype==3){
	if (stop!=2){
	var total13 = length*width*.020
	var total23 = length*width*.025
	outtext = starttext + from + cash + total13 + to + cash + total23 + endtext
	alert(outtext)
	}
}
if(quiltingtype==4){
	if (stop!=2){
	var total14 = length*width*.030
	var total24 = length*width*.040
	var outtext = starttext + from + cash + total14 + to + cash + total24 + endtext
	alert(outtext)
	}
}
}