// JavaScript Document
/*
 * Shawn Olson & http://www.shawnolson.net
 * Copyright 2004
 *
 */
function toggleAll(theElement) {
	var theForm = theElement.form, z = 0;
	for(z=0; z<theForm.length;z++){
		if(theForm[z].type == 'checkbox' && theForm[z].name != 'toggleall'){
			theForm[z].checked = theElement.checked;
		}
	}
}

function showUploading() {
	var winWidth, winHeight;
	if (window.innerWidth) {
		winWidth = window.innerWidth;
		winHeight = window.innerHeight;
	} else {
		winWidth = document.body.offsetWidth;
		winHeight = document.body.offsetHeight;
	}
	var leftOffset = (winWidth / 2) - 125;
	var topOffset = (winHeight / 2);
	
	document.getElementById('upload_box').style.top = topOffset;
	document.getElementById('upload_box').style.left = leftOffset;
}
