/* Minification failed. Returning unminified contents.
(1,11): run-time error CSS1031: Expected selector, found '='
(1,11): run-time error CSS1025: Expected comma or open brace, found '='
(3,10): run-time error CSS1031: Expected selector, found 'jsGetObj('
(3,10): run-time error CSS1025: Expected comma or open brace, found 'jsGetObj('
(18,10): run-time error CSS1031: Expected selector, found 'jsVisible('
(18,10): run-time error CSS1025: Expected comma or open brace, found 'jsVisible('
(27,10): run-time error CSS1031: Expected selector, found 'jsVisToggle('
(27,10): run-time error CSS1025: Expected comma or open brace, found 'jsVisToggle('
(36,10): run-time error CSS1031: Expected selector, found 'jsSwitchReplace('
(36,10): run-time error CSS1025: Expected comma or open brace, found 'jsSwitchReplace('
(42,10): run-time error CSS1031: Expected selector, found 'jsIsEmpty('
(42,10): run-time error CSS1025: Expected comma or open brace, found 'jsIsEmpty('
 */
var DHTML = (document.getElementById || document.all || document.layers);

function jsGetObj(name) {
	if (document.getElementById) {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	}
	else if (document.all) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	}
	else if (document.layers) {
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}

function jsVisible(obj, flag) {
	if (!DHTML) return;
	//alert('hi1'+obj);
	var x = new jsGetObj(obj);
	if (x)
		x.style.display = (flag) ? 'block' : 'none';
	//alert('hi');
}

function jsVisToggle(obj) {
	if (!DHTML) return;

	var x = new jsGetObj(obj);
	if (x) {
		x.style.display = (x.style.display == 'none') ? 'block' : 'none';
	}
}

function jsSwitchReplace(obj1, obj2) {
	jsVisible(obj1, 0);
	jsVisible(obj2, 1);
}


function jsIsEmpty(text) {
	return text.length == 0 || !text.match(/[^\s]/)
}

