
			function popWindow(URL, BWidth, BHeight)
			{
				var aurl = URL; 
				var popW = (screen.width - BWidth) / 2;
				var popH = (screen.height - BHeight) / 2;
				window_onunload() 
				if (typeof(GetConsoleWindow) == "undefined" || GetConsoleWindow.closed == true)
				{
					scrollOption =  "status=no,scrollbars=no"
					GetConsoleWindow = window.open( URL, 'winName', "width=" + BWidth + ",height=" + BHeight + ",top=" + popH + ",left=" + popW + scrollOption);
				}
				GetConsoleWindow.focus()
			}
			
			
			
			function window_onunload()
			{
				if (typeof(GetConsoleWindow) == "undefined" || GetConsoleWindow.closed == true)
				{
				;
				}
				else
				{
					if (typeof(GetConsoleWindow)!= "undefined" || GetConsoleWindow.closed == false)
					{
						GetConsoleWindow.close();
					}
				}
					
			}
			
			function changeContent(replacePic, linkNum)
			{
				var imageName;
				document.images["mainPic"].src = "images/products/xray/" + replacePic;
				if (linkNum == 0){
					document.links[0].disabled = true;
					document.links[1].disabled = false;
				}
				else{
					document.links[1].disabled = true;
					document.links[0].disabled = false;
					if (document.styleSheets){
						var theRules = new Array();
						if (document.styleSheets[0].cssRules)
						{
							theRules = document.styleSheets[0].cssRules;
						}
						else if (document.styleSheets[0].rules)
						{
							theRules = document.styleSheets[0].rules;
						}
						else
						{
						;
						}
						theRules[3].style.color = '#0070BE';
					}
				}
			}
