
browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >=3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function loadImage(url) {
if (ns3up || ie4up) {
	i = new Image()
	i.src = url
	return(i)}
else
	{return(null)
}}

function drawImage(imgName) {
if (ns3up || ie4up) {
	imgOn = ("" + imgName);
	document.mainpic.src = imgOn;
}}

function toggle(index, source) {
if (ns3up || ie4up) {
	document.images[index].src = source.src;
	return(true)}
else
	{return(null)
}}

function changetext(msg) {
	textbox.disabled=false;
	textbox.value=msg
	}

function cleartext() {
	textbox.disabled=true;
	textbox.value=""
	}

function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
}}