function columns(erk,qut) {
if (erk=="one") {
m=document.getElementById("menuContent").offsetHeight;
c=document.getElementById("content").offsetHeight;
if (m>c) {z=document.getElementById("menuContent").offsetHeight;}
else {z=document.getElementById("content").offsetHeight;}
document.getElementById("menuContent").style.height=z+0+"px";
document.getElementById("content").style.height=z+0+"px";
}

if (erk=="two") {
m=document.getElementById("menuContent").offsetHeight;
c=document.getElementById("content").offsetHeight;
if (m>c) {z=document.getElementById("menuContent").offsetHeight;}
else {z=document.getElementById("content").offsetHeight;}
document.getElementById("menuContent").style.height=z+25+"px";
document.getElementById("content").style.height=z+25+"px";
}

if (erk=="three") {
m=document.getElementById("menuContent").offsetHeight;
c=document.getElementById("content").offsetHeight;
r=document.getElementById("right").offsetHeight;
if (c>r) {z=document.getElementById("content").offsetHeight;}
else {z=document.getElementById("right").offsetHeight;}
document.getElementById("menuContent").style.height=z+25+"px";
document.getElementById("content").style.height=z+0+"px";
document.getElementById("right").style.height=z+25+"px";
}
}

function getCSS(a) {
	var obj=document.getElementById(a).style;
	return obj;
}

function highlightForm (hat) {
		classChange('input','item','border','2px solid rgb(0,0,0)');
	if (hat!="") {
		getCSS(hat).border="2px solid green";
	}
}

function classChange(tag,clas,styleProp,styleValue) { // args[1] named 'clas' b/c 'class' is reserved
	for (i=0;i<document.getElementsByTagName(tag).length; i++) {
		if (document.getElementsByTagName(tag).item(i).className == clas){
			eval('document.getElementsByTagName(tag).item(i).style.' + styleProp + ' = "' + styleValue + '"');
		}
	}
}

function toggleInput(fre,kop)
{
	fre.className=kop;
}

function bookmarkPage() {
	if (window.external) {window.external.AddFavorite(location.href,document.title);}
	else {window.alert('Please select from your Bookmarks or Favorites menu at the top of this window.');}
}

function newWindow(address,name,width,height,toolbar,menubar,scrollbars,resizable,location,directories,status) {
var left = (screen.width-width) / 2 - 10; if (left < 0) left = 0;
var top = (screen.height-height) / 2 - 75; if (top < 50) top = 0;
var settings = "left="+left+",top="+top+",width="+width+",height="+height+",toolbar="+toolbar+",menubar="+menubar+",scrollbars="+scrollbars+",resizable="+resizable+",location="+location+",directories="+directories+",status="+status;
window.open(address,name,settings);
}

function exchangesWindow(address) {
var width=600;
var height=500;
var left = (screen.width-width) / 2 - 5; if (left < 0) left = 0;
var top = (screen.height-height) / 2 - 20; if (top < 50) top = 0;
var settings = "left="+left+",top="+top+",width="+width+",height="+height+",toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0,directories=0,status=1";
window.open(address,"exchanges",settings);
}
