// JavaScript Document
function go_to (url) {
	window.location.href = url;
}

function ch_cl (obj, class_name) {
	obj.className = class_name;
}

function ch_cl_id (id, class_name) {
	document.getElementById(id).className = class_name;
}

function swap_classes (id, class1, class2) {
	var obj = document.getElementById(id);
	if(obj.className==class1) { obj.className=class2; }
	else { obj.className=class1; }
}

function check_els(obj, elname) {
	var els = document.getElementsByTagName('input');
	for (i=0;i<els.length;i++) {
		if(els[i].name==elname) {
			if(obj.checked==true) {
				els[i].checked = true;
			}
			else {
				els[i].checked = false;
			}
		}
	}
}
function displayWindow(theURL,winName,width,height,features)
		{
		    var window_width = width;
		    var window_height = height;
		    var newfeatures= features;
		    var window_top = (screen.height-window_height)/2;
		    var window_left = (screen.width-window_width)/2;
		    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
		    newWindow.focus();
		}
