<!--//

function displayPageContent(sText) {
            var divpageContent =  document.getElementById('optCont');
            divpageContent.innerHTML = sText;
			Effect.Pulsate('sizeOpt', { pulses: 3, duration: 1.5 });
}

function displayPSDesContent(sText) {
            var divpageContent =  document.getElementById('desOpt');
            divpageContent.innerHTML = sText;
			Effect.Appear('pshopper2', { duration: 2.0 });
			
}
function displayPSSizeContent(sText) {
            var divpageContent =  document.getElementById('optCont');
            divpageContent.innerHTML = sText;
			Effect.Appear('pshopper3', { duration: 2.0 });
			
}

function showSubmit() {           
	
			Effect.Appear('pshopper4', { duration: 2.0 });
			
}


function requestPageContents(){
	var oXmlHttp = zXmlHttp.createRequest();
	var sizeID = document.sForm.cID.options[document.sForm.cID.selectedIndex].value;
	oXmlHttp.open("get", "fetch_size_details.php?cID=" + sizeID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPageContent(oXmlHttp.responseText);	
				
			} else {
				displayPageContent("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}
 
function requestPSDesignerContents(){
	var oXmlHttp = zXmlHttp.createRequest();
	var colID = document.sForm.cID.options[document.sForm.cID.selectedIndex].value;
	oXmlHttp.open("get", "fetch_designer_details.php?cID=" + colID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPSDesContent(oXmlHttp.responseText);	
				
			} else {
				displayPageContent("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}

function requestPSSizePageContents(){
	var oXmlHttp = zXmlHttp.createRequest();
	var sizeID = document.sForm.cID.options[document.sForm.cID.selectedIndex].value;
	var bID = document.sForm.bID.options[document.sForm.bID.selectedIndex].value;
	oXmlHttp.open("get", "fetch_size_details_ps.php?cID=" + sizeID + "&bID="+bID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPSSizeContent(oXmlHttp.responseText);	
				
			} else {
				displayPSSizeContent("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}

function requestPSDesignerContentsSALE(){
	var oXmlHttp = zXmlHttp.createRequest();
	var colID = document.sForm.cID.options[document.sForm.cID.selectedIndex].value;
	oXmlHttp.open("get", "fetch_designer_detailsSALE.php?cID=" + colID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPSDesContent(oXmlHttp.responseText);	
				
			} else {
				displayPageContent("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}

function requestPSSizePageContentsSALE(){
	var oXmlHttp = zXmlHttp.createRequest();
	var sizeID = document.sForm.cID.options[document.sForm.cID.selectedIndex].value;
	var bID = document.sForm.bID.options[document.sForm.bID.selectedIndex].value;
	oXmlHttp.open("get", "fetch_size_details_psSALE.php?cID=" + sizeID + "&bID="+bID, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				displayPSSizeContent(oXmlHttp.responseText);	
				
			} else {
				displayPSSizeContent("An error occurred: " + oXmlHttp.statusText);					
			}		
		}	
	};
	oXmlHttp.send(null);
	
}


function updateOrderDetails(oID, sourceString, sourceDropdown){
	
	var oXmlHttp = zXmlHttp.createRequest();
	oXmlHttp.open("get", "http://www.justemoi.co.uk/updateOrderDetails.php?oID=" + oID + "&refSource="+sourceString+"&refDD="+sourceDropdown, true );
	oXmlHttp.onreadystatechange = function(){		
		if(oXmlHttp.readyState >= 3){				
			if(oXmlHttp.status==200){					
				//do nothing
				
			} 	
		}	
	};
	oXmlHttp.send(null);
}
//-->