// JavaScript Document
function newsheetData()
{
(window.document.sheetform.shearedsize.value=(window.document.sheetform.width.options[window.document.sheetform.width.selectedIndex].value)+"''" + " x " + (window.document.sheetform.length.options[window.document.sheetform.length.selectedIndex].value)+"''");	
(window.document.sheetform.vwitem.value=window.document.sheetform.sheetitemtype.value + Math.round(window.document.sheetform.width.options[window.document.sheetform.width.selectedIndex].value) + Math.round(window.document.sheetform.length.options[window.document.sheetform.length.selectedIndex].value));
(window.document.sheetform.width.disabled=true);
(window.document.sheetform.length.disabled=true);
(window.document.sheetform.sheetitemtype.disabled=true);
(window.document.sheetform.submit.disabled=true);
}
function newsheetCheck()
{
if (document.sheetform.width.selectedIndex <= 0) {
alert ("Please select the width of the material that you need.");
sheetform.width.focus();
return false}
if (document.sheetform.length.selectedIndex <= 0) {
alert ("Please select the length of material that you need.");
sheetform.length.focus();
return false}
if (document.sheetform.vwquantity.selectedIndex <= 0) {
alert ("Please select the number of pieces that you need.");
sheetform.vwquantity.focus();
return false}
if (document.sheetform.width.selectedIndex  > document.sheetform.length.selectedIndex) {
alert ("Please make the width dimension of the material required the smaller dimension.  The length dimension must always be the larger dimension.  Ex.(3-5/16'' x 14-7/8'')");
sheetform.width.focus();
return false}
}
