version = "notsupported";
if(((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >=3))
|| ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >=4)))
{       version = "supported";
}

function ImagePicker(pickList, location, directory)
// pickList is array of images in <select> list
// location is name of image tag
// directory is where image is stored
{       if(version == "supported")
        {       picture = pickList.options[pickList.selectedIndex].value;
		document.images[location].src = eval("directory + picture");
}       }


function swap2(pickList, location1, directory1, location2, directory2)
// pickList is array of images in <select> list
// location is name of image tag
// directory is where image is stored
{       if(version == "supported")
        {       picture = pickList.options[pickList.selectedIndex].value;
		document.images[location1].src = eval("directory1 + picture");
		document.images[location2].src = eval("directory2 + picture");
}       }

function swap3(pickList, location1, directory1, location2, directory2, location3, directory3)
// pickList is array of images in <select> list
// location is name of image tag
// directory is where image is stored
{       if(version == "supported")
        {       picture = pickList.options[pickList.selectedIndex].value;
		document.images[location1].src = eval("directory1 + picture + '.jpg'");
		document.images[location2].src = eval("directory2 + picture + '.jpg'");
		document.images[location3].src = eval("directory3 + picture + '.gif'");
}       }

function SetPicture()
{
	document.imgSample.src = "../images/jslogo.gif";
}
//変更後の画像のURLを記入します。
function ChangePicture(location, directory, pic)
{
//	document.imgSample.src = "../images/js_sample.gif";
	document.images[location].src = eval("directory + pic");
}
