function costCalculate(low,high,wid,heit)
{
	var s_width=document.getElementById('s_width').value;
	var s_height=document.getElementById('s_height').value;
	var quantity=document.getElementById('quantity').value;
	if(s_width=='0')
	{
		alert('Please select a width to calculate cost! ');
		s_width.focus();
		return false;
	}
	if(s_height=='0')
	{
		alert('Please select a height to calculate cost! ');
		s_height.focus();
		return false;
	}
	if(quantity=='0')
	{
		alert('Please select a quantity to calculate cost! ');
		quantity.focus();
		return false;
	}
	area=s_width*s_height;
	if(s_width<=wid && s_height<=heit)      <!-- if(area<=247) -->
	{
		un_price=area*high ;
		un_price=un_price.toFixed(2);
	}else
	{
		un_price=area*low;
		un_price=un_price.toFixed(2);
	}
	total=un_price*quantity;
	total=total.toFixed(2);
	un_price='$'+un_price;
	total='$'+total;
	document.getElementById('unit_price').value=un_price;
	document.getElementById('sub_tot').value=total;
}
function validateContact()
{
	var numExp=/^[0-9+-]+$/;
	var emailExp=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/;
	if(document.getElementById('fname').value=='')
	{
		alert('Please enter your First name');
		document.getElementById('fname').focus();
		return false;
	}
	if(document.getElementById('lname').value=='')
	{
		alert('Please enter your Last name');
		document.getElementById('lname').focus();
		return false;
	}
	if(document.getElementById('company').value=='')
	{
		alert('Please enter your company');
		document.getElementById('company').focus();
		return false;
	}
	if(document.getElementById('address').value=='')
	{
		alert('Please enter your address');
		document.getElementById('address').focus();
		return false;
	}
	if(document.getElementById('city_state').value=='')
	{
		alert('Please enter your city');
		document.getElementById('city_state').focus();
		return false;
	}
	if(document.getElementById('states').value=='')
	{
		alert('Please enter your state');
		document.getElementById('states').focus();
		return false;
	}
	if(document.getElementById('zipp').value=='')
	{
		alert('Please enter your zip');
		document.getElementById('zipp').focus();
		return false;
	}
	if(document.getElementById('phone').value=='')
	{
		alert('Please enter your phone no.');
		document.getElementById('phone').focus();
		return false;
	}
	if(!document.getElementById('phone').value.match(numExp))
	{
		alert("Please enter a valid phone no.");
		document.getElementById('phone').focus();
		return false;
	}
	if(document.getElementById('email').value=='')
	{
		alert('Please enter your email');
		document.getElementById('email').focus();
		return false;
	}
	if(!document.getElementById('email').value.match(emailExp))
	{
		alert("Please enter a valid email id.");
		document.getElementById('email').focus();
		return false;
	}
	if(document.getElementById('comments').value=='')
	{
		alert('Please enter your comments');
		document.getElementById('comments').focus();
		return false;
	}


}