/*function show(elem) {
    document.getElementById(elem).style.display="block";
};

function hide(elem) {
    document.getElementById(elem).style.display="none";
};*/

/*function checkConfig() {
    /*if (document.configuration.increment.value > 5000) {
	alert("No increments larger than 5000 allowed ... Memory problems");
	document.configuration.increment.focus();
	return false;
	}
    return true;
};*/

/*function copyFromShowData() {
    //alert ("1");
    var l = document.forms["configuration"].elements["data_to_collapse[]"].length;
    for(var i = 0; i <= l; i++) {
	//alert(i);
	document.configuration.elements["data_to_collapse[]"].options[i].selected = 
	    document.configuration.elements["data_to_show[]"].options[i].selected;
    };
}*/

function selectAll(formname, elementname) {
    var length = document.forms[formname].elements[elementname].options.length;
    for(var i = 0; i < length; i++) {
		if (! document.forms[formname].elements[elementname].options[i].selected) 
	    	document.forms[formname].elements[elementname].options[i].selected = true;
    };
};
