// JavaScript Document


// SHORT CUTS
function getElement( id ){
	return document.getElementById( id );
}
function getForm( id ){
	return document.forms[id];
}
function getFrame( id ){
	return window.parent.frames[id];
}
function getWindowWidth(){
	var value;
	if ( !window.innerWidth ){
		value = document.documentElement.clientWidth;
	}else{
		value = window.innerWidth;
	}
	return value;
}
function getWindowHeight(){
	var value;
	if ( !window.innerHeight ){
		value = document.documentElement.clientHeight;
	}else{
		value = window.innerHeight;
	}
	return value;
}


// FUNCTIONS
function resizeList(){
	var list = document.getElementById("listContainer");
	var value;
	if ( !window.innerHeight ){
		value = document.documentElement.clientHeight;
	}else{
		value = window.innerHeight;
	}
	var i = list.style.top;
	list.style.height = value-54 + "px";
}
function changeDivContent( divId, content ){
	var div = getElement( divId );
	div.innerHTML = content;
}
function testAllCheckboxChecked( formId ){
	var form = getForm( formId );
	for ( var i=0; i < form.elements.length ; i++ ){
		if ( form.elements[i].type == "checkbox" && !form.elements[i].checked ) return false;
	}
	return true;
}
function testAnyCheckboxChecked( formId ){
	var form = getForm( formId );
	for ( var i=0; i < form.elements.length ; i++ ){
		if ( form.elements[i].type == "checkbox" && form.elements[i].checked ) return true;
	}
	return false;
}
