function givelife() {
	//oSound.loop=1
	//oSound.src = "sounds/givelife.wav";
}

function outliner(obj) {
	// get the child element
	var childname = obj.getAttribute("child",false);
	var child = document.getElementById(childname);
	//	var child = document.all[childname];
	// if child element exists, expand or collapse it
	if (null != child) {
		if (child.className == "collapsed") {
			child.className = "expanded";
			obj.src = "images/minus.gif";
		} else {
			child.className = "collapsed";
			obj.src = "images/plus.gif";
		}
	}
}


function openTorque()
{
	var features;
	var appname;
	var appver;
	appname = navigator.appName;
	appver = new String(navigator.appVersion);
	window.status = navigator.appName + " " + appver.substr(0,1);
	
	if (appname =="Netscape") {
		if (appver.substr(0,1) < 5) {
			alert("Sorry, you must have at least Netscape 6.x or Internet Explorer 5.xn");
			return;
		}
	}
	
	features = "toolbar=no,top=50,left=50,width=690,height=560,menubar=no,resizable=yes";
	window.open("torquecalc.asp","TorqueWin",features);
}

function hilight2(reason,id) 
{
	var button;
//	button=event.srcElement
    button = document.getElementById(id);
	if (reason == 0) {
		button.src="images/squid-tn.gif";
	} else {
		button.src="images/squid-tn-select.gif";
	};
}

function hiLight(obj, reason) 
{
	if (reason == 1) {
		obj.style.textDecoration="underline";
		obj.style.cursor="pointer";
	} else {
		obj.style.textDecoration="none";
	}
}

function setImg(tgt,img,w,h)
{
	tgt.src=img;
	tgt.width=w;
	tgt.height=h;
}

function mailto(name, domain, tld, tag, subj)
{
	var address;
	var url;
	var http='mailto:';
	
	address=http+name+'@'+domain+'.'+tld;
	url='<a href="'+address+'?subject='+subj+'">'+tag+'</a>';
	//url=address;
	document.write(url);
}