function setClass(element,tdclass) {
	if (element.className != "inert")	element.className=tdclass;
}


function selectText(element,name) {
	if (element.className != "inert") {

		tempColl=document.all.tags("TD");
		for (i=0; i < tempColl.length; i++) {
			if (tempColl(i).className == "inert") {
				tempColl(i).className="hm_item";
			}
		}
    	expandText(name);
		element.className="inert";
	}
}

function init(initialPage) {
	current="";
	tempColl=document.all.tags("DIV");
	for (i=0; i < tempColl.length; i++) {
		if (tempColl(i).className == "expandable") {
			tempColl(i).style.display="none";
		}
	}
    expandText(initialPage);
}

function expandText(name) {

	target=eval(name);
	if (current && current != target) {
		current.style.display="none";
		current.isExpanded=false;
	}
	if (target.style.display != "block") {
		target.style.display="block";
		target.isExpanded=true;
		current=target;
	}
	else {
		target.style.display="none";
		target.isExpanded=false;
		current="";
	}
}

function imageset(element) {
	if (element) {
		if (document.images) {
			document.MainImg.src=element.src;
		}
	}
}

function ApplicationForm(action,element) {
	if (action=="MSE_OVR") { element.className="hover"; return;}
	if (action=="MSE_OUT") { element.className="button"; return; }
	if (action=="CLICK")   {
		target=eval("theAcceptance");
		target.style.display="none";
		target=eval("theForm");
		target.style.display="block";
	}
}

function bigWindow(newpage) {
window.open(newpage, 'bigWindow','width=785,height=500,toolbar=no,left=100,top=100, ,menubar=no,scrollbars=yes');
}
