// JavaScript Document

function loadXMLDoc(dname)
{
	if (window.XMLHttpRequest)
	{
		xhttp=new XMLHttpRequest();
	}
	else
	{
		xhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xhttp.open("GET",dname,false);
	xhttp.send("");
	return xhttp.responseXML;
}

// This function loads the large version of a small product picture when clicked on by the user
function loadPicture(which)
	{	
	source = which.src;
	name = which.alt;
	newName = name.split("_");
	newPicture = source.replace("/smallthumbnail", "");
	document.getElementsByName(newName[0])[0].src = newPicture;
	}
	
