<!-- 
//////////  Fabric Only JavaScript //////////////

//////////////////////  popUp   ////////////////////

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,location=0,scrollbars=1,statusbar=0,menubar=0,resizable=0,width=650,height=400,left = 100,top = 100');");
    return;
} // close popUP
// End popUp 
 

//////////////////////   isEmpty ////////////////////
// Check whether string s is empty. Called by isFloat
// If empty ... returns True
// If not empty ... returns False

function isEmpty(s)
{   
//DEBUG STATEMNT FOLLOWS	   
// window.alert("isEmpty started with: " + s);		
//DEBUG STATEMNT ABOVE
if ((s == "No_Fabric_Selected|00.00") || (s.length == 0))
	{
//DEBUG STATEMNT FOLLOWS	
//	window.alert(" is empty");
		return true;
	}
//DEBUG STATEMNT FOLLOWS		
// window.alert(" is NOT empty");
return false;
}



//////////////////////   calcPrice for Fabric Samples  ////////////////////

function calcPrice ()
{
var sampleOrdered = 0;
var priceTotal = 0;

if (!isEmpty(document.TestForm.Swatch1.value))
	{var sampleOrdered = 1;}
if (!isEmpty(document.TestForm.Swatch2.value))
	{var sampleOrdered = sampleOrdered + 1;}
if (!isEmpty(document.TestForm.Swatch3.value))
	{var sampleOrdered = sampleOrdered + 1;}
if (!isEmpty(document.TestForm.Swatch4.value))
	{var sampleOrdered = sampleOrdered + 1;}

if (sampleOrdered > 0)	
	{var priceTotal = 4;}

document.TestForm.price_total.value = priceTotal;

document.TestForm.sumLabor.value = 0;
document.TestForm.sumFoam.value = 0;


document.TestForm.additionalShipping.value = "no";
document.TestForm.linearDimension.value = "NA";
}
// calcPrice();	



//////////////////////   Validate for Fabric Samples  ////////////////////

function Validate ()
{
		
var total_price = eval(document.TestForm.price_total.value);
if ((total_price == null) || (total_price.length == 0))
	{
		window.alert("Fabric Not Selected");
		document.TestForm.Swatch1.focus();
		return false;
	}

return true;
} // close Validate

-->

