				function GetXmlHttpObject(handler)
				{ 
					var objXmlHttp=null;
					if (navigator.userAgent.indexOf("MSIE")>=0)	{ 
						var strName="Msxml2.XMLHTTP";
						if (navigator.appVersion.indexOf("MSIE 5.5")>=0){
							strName="Microsoft.XMLHTTP";
						}try{ 
							objXmlHttp=new ActiveXObject(strName);
							objXmlHttp.onreadystatechange=handler;
							return objXmlHttp;
						}catch(e){ 
							alert("Error. Scripting for ActiveX might be disabled");
						return;
						} 
					} 
					if (navigator.userAgent.indexOf("Mozilla")>=0){
						objXmlHttp=new XMLHttpRequest();
						objXmlHttp.onload=handler;
						objXmlHttp.onerror=handler;
						return objXmlHttp;
					}
				}
				function getNews(id){ 
					var url="getNews.asp?id="  + id ;
					xmlHttp=GetXmlHttpObject(stateChanged);
					xmlHttp.open("GET", url , true);
					xmlHttp.send(null);
				} 
				function stateChanged(){ 
					if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){
					document.getElementById('nwdetails').innerHTML=xmlHttp.responseText;
					}
				} 				 
				function updateSelectedColour(colourId, colourName){
					// This object only exists when the user is logged in because the ability 
					// to add to shopping cart is for authenticated users only. Therefore make 
					// sure that the object exists.
					
					var obj = document.getElementById("selectedColourId");
					if(obj!=null){
						obj.value = colourId;
					}
					var obj = document.getElementById("selectedColourName"); // the colour description so we dont have to relookup
					if(obj!=null){
						
						obj.value = colourName;
					}
					
				}
