  <!-- Hide from older browsers

function QHeader() {
	document.write ("<BODY background=\"images/background.jpg\" bgcolor=\"#FFFFFF\"  text=\"#000000\""
			+ " link=\"#0000FF\"  vlink=\"#800080\"  alink=\"#FF0000\" >\r\n");
	document.write ("<Center>\r\n");
	document.write ("<a href=>\r\n");
	document.write ("<img border=\"0\" src=\"images/banner.gif\" width=\"400\" height=\"85\"></a>");
	
	document.write ("<object type=\"application/x-shockwave-flash\" data=\"https://clients4.google.com/voice/embed/webCallButton\" width=\"230\" height=\"85\"><param name=\"movie\" value=\"https://clients4.google.com/voice/embed/webCallButton\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"FlashVars\" value=\"id=71645ba95157619e03f175284323f2211cc9ec90&style=0\" /></object>");

	document.write ("<table>");
	document.write ("<td width=\"33%\">");
	document.write ("<p align=\"Center\">Click for Map<br>");
	document.write ("<b><font face=\"Broadway\" size=\"2\">");
	document.write ("<a href=\"Shoppes.htm\">");
	document.write ("<a class=\"thumbnail\" href=\"/Shoppes.htm\"><img src=\"/images/Shoppes.jpg\" width=\"188px\" height=\"99px\" border=\"0\" />");
	document.write ("<span><img src=\"/images/Meadows_map.gif\" width=\"177px\" height=\"140px\" /><br />Click to see map</span></a>");
	document.write ("4320 Gretna Road<br>");
	document.write ("<font size=\"4\">(417) 336-6364</font></b></p></td>");

	document.write ("<td width=\"33%\">");
	document.write ("<p align=\"Center\">");
	document.write ("<img border=\"0\" src=\"images/Star-Quilt.gif\" align=\"right\" width=\"200\" height=\"200\"></td></p>");
	
	document.write ("<td width=\"33%\">");
	document.write ("<p align=\"Center\">Click for Map<br>");
	document.write ("<b><font face=\"Broadway\" size=\"2\">");
	document.write ("<a href=\"Downtown.htm\">");
	document.write ("<a class=\"thumbnail\" href=\"/Downtown.htm\"><img src=\"/images/Downtown.gif\" width=\"188px\" height=\"99px\" border=\"0\" />");
	document.write ("<span><img src=\"images/Downtown_map.gif\" width=\"177px\" height=\"140px\" /><br />Click to see map</span></a>");
	document.write ("121 W Main Street<br>");
	document.write ("<font size=\"4\">(417) 334-6375</font></b></p></td>");

	document.write ("</table>");

}


function QSMHeader() {
	document.write ("<BODY background=\"images/background.jpg\" bgcolor=\"#FFFFFF\"  text=\"#000000\""
			+ " link=\"#0000FF\"  vlink=\"#800080\"  alink=\"#FF0000\" >\r\n");
	document.write ("<Center>\r\n");
	document.write ("\r\n");
	document.write ("\r\n");
	document.write ("\r\n");
	document.write ("\r\n");
	document.write ("<a href=>\r\n");
	document.write ("<img border=\"0\" src=\"images/banner.gif\" width=\"400\" height=\"85\"></a>\r\n");
	
	document.write ("<object type=\"application/x-shockwave-flash\" data=\"https://clients4.google.com/voice/embed/webCallButton\" width=\"230\" height=\"85\"><param name=\"movie\" value=\"https://clients4.google.com/voice/embed/webCallButton\" /><param name=\"wmode\" value=\"transparent\" /><param name=\"FlashVars\" value=\"id=71645ba95157619e03f175284323f2211cc9ec90&style=0\" /></object>");
}

function QFooter() {
//Footer goes here
}


function QTable(QIndex,TableWidth,TableHeight) {

	// The following is used to figure out the numbers on the bottom of the page
	// Example "Displaying Quilts 13-24 of 25 Quilts"

	NumOnPage        = TableWidth*TableHeight;		// Number of Quilts on Each Page
	FirstOnPage      = (QPage*NumOnPage)-(NumOnPage-1);	// First Quilt on the Current Page
	LastOnPage	 = FirstOnPage+(NumOnPage-1);		// Last Quilt on the Current Page
	TotalAfterFilter = 0;  					// Total Quilts After The Filter
	for (var I=0; I < QLength+1; I++) {
		if (QNum[I].Display == "True"){TotalAfterFilter = TotalAfterFilter + 1}
	}
	if (LastOnPage>TotalAfterFilter){LastOnPage = TotalAfterFilter}
	PagesAfterFilter = Math.ceil(TotalAfterFilter/NumOnPage);

	//This is the start of drawing the table that contains the pictures of the quilts.
	document.write ("<CENTER><TABLE border=3 bordercolor=#808080 bordercolorlight=#C0C0C0 bordercolordark=#404040 "
		+ "width= \"95%\" cellspacing=\"2\" cellpadding=\"2\">\r\n");
		for (var QColumn=1; QColumn <= TableHeight; QColumn++) { 
			document.write ("<TR>\r\n");
			for (var QRow=1; QRow <= TableWidth; QRow++) {
				//Skips a Pic if the Display field is turned off.
				while (QIndex < QLength && QNum[QIndex+1].Display != "True"){QIndex=QIndex+1}
				if (QIndex < QLength) {
					QIndex=QIndex+1
					document.write ("\t\t<TD align=center valign=center>\t"
						+ "<a class=\"thumbnail\" href=\"product.htm?" + QNum[QIndex].Number + "\""
						+ "><IMG name=\"QPic[" + QIndex + "]\""
						+ "src=\"quilts/" + QNum[QIndex].Number + "T.jpg\""
						//+ " border=0 alt=\"" + QNum[QIndex].Number + "\" />"
						+ " border=\"0\" />");
						//This is the mouse over part that displays the popup bigger image
						if (PopupState == 1) {
							document.write ("<span><img src=\"quilts/" + QNum[QIndex].Number 
							+ ".jpg\" width=\"300px\" height=\"300px\" "
							//This is the name on the popup bigger image
							+ "/><br />" + QNum[QIndex].Number + "  " + QNum[QIndex].Name + "</span>");
							} else
							{document.write ("<br />");
							}
						//Name under the quilt
						document.write ("</a><br><FONT size=3 face=Arial>"
						+ "<a href=product.htm?" + QNum[QIndex].Number
						+ ">" + QNum[QIndex].Name + "</a></FONT></TD>\r\n");
					}
			}
		}
	document.write ("</TR>\r\n");
	document.write ("</TABLE></CENTER>\r\n");


	if (QButtons.charAt(4) == 2){document.write ("<B><A href=" + QLink[4] + ">&laquo</a>&nbsp&nbsp&nbsp</B>");}
	for (var I=1; I < PagesAfterFilter + 1; I++) {
		NumberLinkStr = "<B><a href=page.htm?" + I + "+" + QFilter + ">" + I + "</a>&nbsp&nbsp&nbsp</B>";
		if (QPage != I){document.write (NumberLinkStr);}else{document.write ("<B>" + I + "&nbsp&nbsp&nbsp</B>");}
	}
	if (QButtons.charAt(6) == 2){document.write ("<B><A href=" + QLink[6] + ">&raquo</a>&nbsp&nbsp&nbsp</B>");}

	document.write ("<br><B>Displaying Quilts " + FirstOnPage + "-" + LastOnPage + " of " +
		TotalAfterFilter + " Quilts  (" + PagesAfterFilter + " Pages)</B><br><br>");
}

function QNavMenu(QPage,QButtons) {
	//Each digit in Qbuttons equals the buttons in this order.
	// 0=Order 1=Care 2=Email 3=Back 4=Previous 5=Home 6=Next 7=Products
		QLink		= new Array (6);
		QImage		= new Array (6);
		QLink[0]	= "order.htm";
		QImage[0]	= "images/order.gif";
		QLink[1]	= "care.htm";
		QImage[1]	= "images/care.gif";
		QLink[2]	= "mailto:sales@" + "ozarkquilts.com";
		QImage[2]	= "images/email.gif";
		QLink[3]	= "javascript:history.go(-1);";
		QImage[3]	= "images/back.gif";
		QLink[4]	= "page.htm?" + (QPage - 1) + "+" + QFilter;
		QImage[4]	= "images/previous.gif";
		QLink[5]	= "/";
		QImage[5]	= "images/home.gif";
		QLink[6]	= "page.htm?" + (QPage + 1) + "+" + QFilter;
		QImage[6]	= "images/next.gif";
		QLink[7]	= "page.htm";
		QImage[7]	= "images/products.gif";

	// The value of the digit represents the following. 
	// 0 = No Button
	// 1 = Disabled Button
	// 2 = Show Button

// This section strips the Button String coming from the other page.
	// Uncomment the next line for troubleshooting the number passed
	// document.write ("<br>" + QButtons);
	document.write ("<br>");
	for (var QIndex=0; QIndex <= 7; QIndex++) {
	       	QButtonStatus = QButtons.charAt(QIndex);

	// This section prints out the Button, Disabled Button, or No Button
		// Print the Button
		if(QButtonStatus == "2"){
			document.write ("<a href=" + QLink[QIndex] + "><IMG border=0 src=" +
				QImage[QIndex] + "></a>");
		}
		// Print a Disabled Button
		if(QButtonStatus == "1"){
			document.write ("<IMG src=images/blank.gif>");
		}

		// This line determines where the buttons start the second row.
		if(QIndex == 2){
			document.write ("<br>");
		}
	}
}

function QFrame() {

	document.write ("<br>\r\n<CENTER>\r\n<TABLE BGCOLOR=\"#336699\" BORDER=\"5\" CELLPADDING=\"5\" \r\n");
	document.write ("CELLSPACING=\"5\">\r\n<TR ALIGN=\"CENTER\">\r\n<TD>\r\n");
	document.write ("<TABLE BGCOLOR=\"#CC9999\" BORDER=\"0\" CELLPADDING=\"10\" \r\nCELLSPACING=\"10\">\r\n");
	document.write ("<TR ALIGN=\"CENTER\">\r\n<TD>\r\n<p align=\"center\">\r\n");
	document.write ("<IMG name = \"ImageName\" BORDER=\"0\">\r\n");

document.images.ImageName.src = "quilts/" + QNum[QIndex].Number + ".jpg";

	document.write ("</p>\r\n</TD>\r\n</TR>\r\n</TABLE>\r\n</TD>\r\n</TR>\r\n</TABLE>\r\n</CENTER>\r\n");
}



function QPrice() {

// The following section examines what sizes are available.  If a size is available a cart will be visible.
// If a size is not available or if free shams the cart will not be clickable and will have a red X. 

	function Table(QCartLink, QCartSize, QCartRPrice, QCartSPrice, QReg, QSale, QSize, QType) {
		this.QCartLink		= QCartLink;
		this.QCartSize		= QCartSize;
		this.QCartRPrice	= QCartRPrice;
		this.QCartSPrice	= QCartSPrice;
		this.QReg		= QReg;
		this.QSale		= QSale;
		this.QSize		= QSize;
		this.QType		= QType;
		}

	QTable	= new Array (12);
	for (var QLoop=0; QLoop <= 12; QLoop++) {
	QTable[QLoop] = new Table;
	}

// 0=OSKing 1=King 2=Queen 3=Full 4=Twin 5=Sham 6=Throw 7=Euro 8=Valance 9=Pillow 10=Teddy Bear 11=King Skirt 12=Queen Skirt
// The following moves the data into an array.
	QTable[0].QType	= "Oversize King";
	QTable[1].QType	= "King";
	QTable[2].QType = "Queen";
	QTable[3].QType	= "Full";
	QTable[4].QType = "Twin";
	QTable[5].QType	= "Sham";
	QTable[6].QType	= "Throw";
	QTable[7].QType	= "Euro";
	QTable[8].QType	= "Valance";
	QTable[9].QType	= "Pillow";
	QTable[10].QType	= "Teddy Bear";	
	QTable[11].QType	= "King Skirt";		
	QTable[12].QType	= "Queen Skirt";		
	
	QTable[0].QReg	= QNum[QIndex].OSKingReg;
	QTable[1].QReg	= QNum[QIndex].KingReg;
	QTable[2].QReg	= QNum[QIndex].QueenReg;
	QTable[3].QReg	= QNum[QIndex].QueenReg;
	QTable[4].QReg	= QNum[QIndex].TwinReg;
	QTable[5].QReg	= QNum[QIndex].ShamReg;
	QTable[6].QReg	= QNum[QIndex].ThrowReg;
	QTable[7].QReg	= QNum[QIndex].EuroReg;
	QTable[8].QReg	= QNum[QIndex].ValanceReg;	
	QTable[9].QReg	= QNum[QIndex].PillowReg;	
	QTable[10].QReg	= QNum[QIndex].TBearReg;	
	QTable[11].QReg	= QNum[QIndex].KSkirtReg;	
	QTable[12].QReg	= QNum[QIndex].QSkirtReg;	

	QTable[0].QSale	= QNum[QIndex].OSKingSale;
	QTable[1].QSale	= QNum[QIndex].KingSale;
	QTable[2].QSale	= QNum[QIndex].QueenSale;
	QTable[3].QSale	= QNum[QIndex].QueenSale;
	QTable[4].QSale	= QNum[QIndex].TwinSale;
	QTable[5].QSale	= QNum[QIndex].ShamSale;
	QTable[6].QSale	= QNum[QIndex].ThrowSale;
	QTable[7].QSale	= QNum[QIndex].EuroSale;
	QTable[8].QSale	= QNum[QIndex].ValanceSale;	
	QTable[9].QSale	= QNum[QIndex].PillowSale;	
	QTable[10].QSale = QNum[QIndex].TBearSale;	
	QTable[11].QSale = QNum[QIndex].KSkirtSale;	
	QTable[12].QSale = QNum[QIndex].QSkirtSale;	

	QTable[0].QSize	= QNum[QIndex].OSKingSize;
	QTable[1].QSize	= QNum[QIndex].KingSize;
	QTable[2].QSize	= QNum[QIndex].QueenSize;
	QTable[3].QSize	= QNum[QIndex].QueenSize;
	QTable[4].QSize	= QNum[QIndex].TwinSize;
	QTable[5].QSize	= QNum[QIndex].ShamSize;
	QTable[6].QSize	= QNum[QIndex].ThrowSize;
	QTable[7].QSize	= QNum[QIndex].EuroSize;
	QTable[8].QSize	= QNum[QIndex].ValanceSize;	
	QTable[9].QSize	= QNum[QIndex].PillowSize;	
	QTable[10].QSize = QNum[QIndex].TBearSize;	
	QTable[11].QSize = QNum[QIndex].KSkirtSize;	
	QTable[12].QSize = QNum[QIndex].QSkirtSize;	


//Sets up format for the tables
QT1Format1 = "<td width=\"50%\">"
QT1Format2 = "</td>\r\n" +QT1Format1;
QT1Format3 = "<table border=\"1\" width=\"55%\">"
QT2Format1 = "<td width=\"10%\"><center>";
QT2Format2 = "<td width=\"22%\">";
QT2Format3 = "</td>\r\n</tr>\r\n</td>\r\n";
QT2Format4 = "</td>\r\n" +QT2Format2;
QT1Format5 = "<table border=\"10\" width=\"55%\">"
Xsize = ""
Ysize = ""
VarLen = 0

//Start of the First Table
	document.write ("<p style=\"margin-top: 1; margin-bottom: 1\">&nbsp;</p>\r\n<div align=\"center\">\r\n");
	document.write ("<center>\r\n" + QT1Format3 + "\r\n<tr>\r\n" + QT1Format1 + "\r\n");
	document.write ("<p align=\"center\">");

document.write ("<b><u>Name</u></b>");
	document.write (QT1Format2 + "\r\n<p align=\"center\">");
document.write ("<b><u>Order Number</u></b>");
	document.write ("</td>\r\n</tr>\r\n<tr>\r\n" + QT1Format1 + "\r\n<p align=\"center\">");
document.write (QNum[QIndex].Name);
	document.write (QT1Format2 + "\r\n\t\t <p align=\"center\">");
document.write (QNum[QIndex].Number);


//Start of the Second Table
	document.write ("</td>\r\n\t</tr>\r\n</table>\r\n</center>\r\n</div>\r\n<div align=\"center\">\r\n");
	document.write ("<center>\r\n" + QT1Format5 + "\r\n<tr>\r\n");

// Print the Heads of the second column.
//****************Disable next line to disable the cart (1 of 2)
document.write (QT2Format1 + "<b><u>Add</u></b>" + "</center>");
document.write (QT2Format2 + "&nbsp" + QT2Format4);
document.write ("<b><u><center>Size<center></u></b>" + QT2Format4);
document.write ("<b><u><center>Retail Price</center></u></b>" + QT2Format4);
document.write ("<b><u><center>Our Sale Price</center></u></b>" + QT2Format3);


//This is the loop that fills in the whole table
	for (var QLoop=0; QLoop <= 12; QLoop++) {

//The following strips off the Dollar sign from the price
//This is needed because the shopping cart is written to accept prices without the dollar sign
	QPrice = QTable[QLoop].QSale.substring(1,QTable[QLoop].QSale.length)

//Assume that there should be a cart and change it if there should not be one.

//Determines the quilt size and then prices shipping based on size
	if (QTable[QLoop].QType == "Sham") 			{QShipping = "3.00";}
	    else if (QTable[QLoop].QType == "Oversize King")	{QShipping = "10.00";}
	    else if (QTable[QLoop].QType == "King")  		{QShipping = "10.00";}
	    else if (QTable[QLoop].QType == "Queen") 		{QShipping = "10.00";}
	    else if (QTable[QLoop].QType == "Full")  		{QShipping = "10.00";}
	    else if (QTable[QLoop].QType == "Twin")  		{QShipping = "10.00";}
	    else if (QTable[QLoop].QType == "Throw")  		{QShipping = "8.00";}
	    else if (QTable[QLoop].QType == "Euro Sham")  		{QShipping = "8.00";}
	    else if (QTable[QLoop].QType == "Valance")  		{QShipping = "8.00";}
	    else if (QTable[QLoop].QType == "Pillow")  		{QShipping = "8.00";}
	    else if (QTable[QLoop].QType == "Teddy Bear")  		{QShipping = "8.00";}
	    else if (QTable[QLoop].QType == "King Skirt")  		{QShipping = "8.00";}
	    else if (QTable[QLoop].QType == "Queen Skirt")  		{QShipping = "8.00";}		
	    else   						{QShipping = "10.00";}

//This is the form from nopcart.  This puts together the information for the cart.
QTable[QLoop].QCartLink	=
"<!--Shopping Cart Product Begin-->" +
"<P><FORM NAME=order ACTION=\"managecart.html\" onSubmit=\"AddToCart(this);\">" +
"<input type=text size=2 maxlength=3 name=QUANTITY " +
"onChange='this.value=CKquantity(this.value)' value=\"1\">" +
"<input type=\"image\" src=\"./images/cartyes.gif\" value=\"Add to Cart\" ALIGN=Bottom>" +
"<input type=hidden name=\"PRICE\" value=\"" + QPrice + "\">" +
"<input type=hidden name=\"NAME\" value=\"" + QNum[QIndex].Name + "\">" +
"<input type=hidden name=\"ID_NUM\" value=\"" + QNum[QIndex].Number + QTable[QLoop].QType + "\">" +
"<input type=hidden name=\"SHIPPING\" value=\"" + QShipping + "\">" +
"<!--Shopping Cart Product End -->"+
"</td>\r\n</FORM>";

		//Check to if a Quilt is Available
		if(QTable[QLoop].QSale == "Not Available") {QTable[QLoop].QCartLink = "<IMG src=\"images/cartno.gif\"</td>\r\n";}

		//Check to See if the item is sold as Sets. Turn off Cart since it is free.
		if(QNum[QIndex].SoldAsSet == "True") {if(QLoop == 5) {QTable[QLoop].QCartLink = "<IMG src=\"images/cartno.gif\"</td>\r\n";}}

		//Check to See if the quilt is an oversize that is not listed as an OSKing
		//The following adds the words (Oversize) if the Quilt is Oversized.
		if(QTable[QLoop].QType != "Oversize King"){
			if (QTable[QLoop].QSize == "&nbsp") 
				//Size is empty.  Do Nothing
				;
			  else
				//Check Size for Oversize - Start by Stripping Length and Width into individual numbers.
				Xsize = QTable[QLoop].QSize.charAt(0) + QTable[QLoop].QSize.charAt(1) + QTable[QLoop].QSize.charAt(2);
				VarLen = QTable[QLoop].QSize.length
				Ysize = QTable[QLoop].QSize.charAt(VarLen-3) + QTable[QLoop].QSize.charAt(VarLen-2) + QTable[QLoop].QSize.charAt(VarLen-1);

				// If Oversize add the words Oversize to the Size 
				if (QTable[QLoop].QType == "King" && (Xsize > 100 || Ysize > 90))
					QTable[QLoop].QType = "Oversize King";
				if (QTable[QLoop].QType == "Queen" && (Xsize > 86 || Ysize > 86))
					QTable[QLoop].QType = "Oversize Queen";
				if (QTable[QLoop].QType == "Full" && (Xsize > 86 || Ysize > 86))
					QTable[QLoop].QType = "Oversize Full";
		}

		//Print out the prices
		//Skip if No Oversize King
		if(QTable[QLoop].QType == "Oversize King"  && QTable[QLoop].QSale == "Not Available")
			//Skip OSKing because there is not one
			;
		  else
			{QTable[QLoop].QCartRPrice = "<P ALIGN=\"right\">" + QTable[QLoop].QReg + "</p>";
			QTable[QLoop].QCartSPrice = "<P ALIGN=\"right\">" + QTable[QLoop].QSale + "</p>";
			QTable[QLoop].QCartSize   = "<center>" + QTable[QLoop].QSize + "</center>";
//****************Disable next line to disable the cart (2 of 2)
			document.write (QT2Format1 + QTable[QLoop].QCartLink + "</center>");
			document.write (QT2Format2 + "<b>" + QTable[QLoop].QType + "</b>" + QT2Format4);
			document.write (QTable[QLoop].QCartSize + QT2Format4);
			document.write (QTable[QLoop].QCartRPrice + QT2Format4);
			document.write (QTable[QLoop].QCartSPrice + QT2Format3);}
		}

	// Close off the table.
	document.write ("</table>\r\n</center>\r\n</div>\r\n");
	//Print the Comment
	document.write ("<b><font size=\"5\" face=\"Verdana\"><br>");
	document.write (QNum[QIndex].Comment);
	document.write ("<br><br></font></b>");
}

//This function checks to see if a quilt is oversized by looking at the dimensions
//You need to send the size in this format "110 X 90" along with the standard size for
//the quilt you want to check.  Function returns true if it is oversize.
function CheckForOversize(TheSize, XMax, YMax){

	//Check for Oversize - Start by Stripping Length and Width into individual numbers.
	Xsize = TheSize.charAt(0) + TheSize.charAt(1) + TheSize.charAt(2);
		if (isNaN(Xsize)) Xsize = 100;
	VarLen = TheSize.length
	Ysize = TheSize.charAt(VarLen-3) + TheSize.charAt(VarLen-2) +  TheSize.charAt(VarLen-1);
		if (isNaN(Ysize)) Ysize = 90;

	// If Not Oversize then Don't Display it. And If Oversize then leave at display default of "TRUE"
	if (Xsize <= XMax && Ysize <= YMax)
		{return false;}
	else
		{return true;}		

}



function FilterQuilts(QFilter){
//	1=Kings less than $150
//	2=Queens less than $100
//	3=Kings less than $200
//	4=Queens less than $150
//	5=Oversize King Quilts
//	6=Oversize Queen Quilts
//	7=King Quilts
//	8=Queen Quilts
//	9=Twin Quilts
//     10=Throws

	switch (QFilter) {
		case 1  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].KingSale.substring(1,QNum[I].KingSale.length))
				//If Not Available then set price to 9999
					if(isNaN(QPrice)) {QPrice = 9999};
				//The following Checks to see if the price is less than $150
					if (QPrice>150) {QNum[I].Display = "False"}
				}
				break;
		case 2  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].QueenSale.substring(1,QNum[I].QueenSale.length))
				//If Not Available then set price to 9999
					if(isNaN(QPrice)) {QPrice = 9999};
				//The following Checks to see if the price is less than $100
					if (QPrice>100) {QNum[I].Display = "False"}
				}
				break;
		case 3  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].KingSale.substring(1,QNum[I].KingSale.length))
				//If Not Available then set price to 9999
					if(isNaN(QPrice)) {QPrice = 9999};
				//The following Checks to see if the price is less than $200
					if (QPrice>200) {QNum[I].Display = "False"}
				}
				break;
		case 4  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].QueenSale.substring(1,QNum[I].QueenSale.length))
				//If Not Available then set price to 9999
					if(isNaN(QPrice)) {QPrice = 9999};
				//The following Checks to see if the price is less than $150
					if (QPrice>150) {QNum[I].Display = "False"}
				}
				break;
		case 5  : for (I=1; I <= QLength; I++){
				if (CheckForOversize(QNum[I].OSKingSize, 100, 90) == false)
					{
					QNum[I].Display = "False"
					if (CheckForOversize(QNum[I].KingSize, 100, 90) == true)
						{QNum[I].Display = "True"}
					}
				}
				break;
		case 6  : for (I=1; I <= QLength; I++){
				if (CheckForOversize(QNum[I].QueenSize, 86, 86) == false)
					{
					QNum[I].Display = "False"
					}	
				}
				break;
		case 7  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].KingSale.substring(1,QNum[I].KingSale.length))
				//If Not Available then don't display
					if(isNaN(QPrice)) {QNum[I].Display = "False"};	
				}
				break;
		case 8  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].QueenSale.substring(1,QNum[I].QueenSale.length))
				//If Not Available then don't display
					if(isNaN(QPrice)) {QNum[I].Display = "False"};	
				}
				break;
		case 9  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].TwinSale.substring(1,QNum[I].TwinSale.length))
				//If Not Available then don't display
					if(isNaN(QPrice)) {QNum[I].Display = "False"};	
				}
				break;
		case 10  : for (I=1; I <= QLength; I++){
				//The following strips off the Dollar sign from the price
					QPrice = parseInt(QNum[I].ThrowSale.substring(1,QNum[I].ThrowSale.length))
				//If Not Available then don't display
					if(isNaN(QPrice)) {QNum[I].Display = "False"};	
				}
				break;
	}
}


function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

function toggle(obj) {
	var el = document.getElementById("PopupOnOff");
	if ( el.value=="Popup Pictures On" ) {
		//Popups are currently On
		el.value="Popup Pictures Off"
		createCookie('PopupState',1,365)
		location.href="page.htm?1" + document.getElementById('QSort').value; 
	}
	else {
		//Popups are currently Off
		el.value="Popup Pictures On"
		createCookie('PopupState',0,365)
		location.href="page.htm?1" + document.getElementById('QSort').value; 
	}
}

  // Stop hiding -->
