function bedQuery(id, div, cat){

			var ajaxRequest;  // The variable that makes Ajax possible!
			try{
				// Opera 8.0+, Firefox, Safari
				ajaxRequest = new XMLHttpRequest();
			} catch (e){
				// Internet Explorer Browsers
				try{
					ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					try{
						ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
					} catch (e){
						// Something went wrong
						alert("Please Reload Page");
						return false;
					}
				}
			}
			// Create a function that will receive data sent from the server
			ajaxRequest.onreadystatechange = function(){
				if(ajaxRequest.readyState == 4){
					// holder is the name of the div that you are putting the content into.
					var ajaxDisplay = document.getElementById(div);
					ajaxDisplay.innerHTML = ajaxRequest.responseText;
					launchJavascript(ajaxRequest.responseText);
				}
				else {
					// Shows loading image.  Customize with any animated gif and text.
					document.getElementById(div).innerHTML = '<div id="ajaxDiv" style="min-height: 590px;"><p class="productName" style="padding-left: 130px;"><br><br><br>Loading . . .<br><br><br><img style="padding:0px 10px 0px 30px;" src="../images/ajax-loader.gif"></p></div>';
					}
			}
			
			var query = "?ID=" + id + "&cat=" + cat;
			//alert(query);
				// Page to open in holder DIV							
			ajaxRequest.open("GET", "productInfo.php" + query, true);
			ajaxRequest.send(null);
		}
		
function contentQuery(id, div, cat){
			
			var ajaxRequest;  // The variable that makes Ajax possible!
			try{
				// Opera 8.0+, Firefox, Safari
				ajaxRequest = new XMLHttpRequest();
			} catch (e){
				// Internet Explorer Browsers
				try{
					ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
				} catch (e) {
					try{
						ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
					} catch (e){
						// Something went wrong
						alert("Please Reload Page");
						return false;
					}
				}
			}
			// Create a function that will receive data sent from the server
			ajaxRequest.onreadystatechange = function(){
				if(ajaxRequest.readyState == 4){
					// holder is the name of the div that you are putting the content into.
					var ajaxDisplay = document.getElementById(div);
					ajaxDisplay.innerHTML = ajaxRequest.responseText;
				}
				else {
					// Shows loading image.  Customize with any animated gif and text.
					document.getElementById(div).innerHTML = '<table width="100%" border="0" cellspacing="0" cellpadding="0" ><tr><td colspan="6" class="catagoryTitle"></td></tr><div><tr><div id="specificBed" class="productName" style="padding-left: 130px; margin-bottom: 200px; background-color: #1e1e1e;">Loading . . .<br><br><br><img style="padding: 2px 10px 0px 30px;" src="../images/ajax-loader2.gif"></div>';
					}
			}
			var query = "?page=" + id + "&category=" + cat;
			
			ajaxRequest.open("GET", "http://www.modernstudiofurnishings.com/productContent.php" + query, true);
			ajaxRequest.send(null);
		}
