function buildForms(num)
{
	if(isNaN(num))
		alert('This field requires a number');
	else
	{
		//alert('number of team members = '+num);	
		for(var i=1; i<=num; i++)
			showHide(i+'', true);		
	}
}
function showHide(elem, show)
{
	if(show == true)
		document.getElementById(elem).style.display = 'inline';
	else
		document.getElementById(elem).style.display = 'none';
}
function switchClass(elem, myClass, elemList, defClass)
{
	myList = elemList.split(';');
	for(var i=0; i<myList.length; i++)
		document.getElementById(myList[i]).setAttribute("class", defClass);
	document.getElementById(elem).setAttribute("class", myClass);	
}
function wopen(url, name, w, h)
{
	// Fudge factors for window decoration space.
	// In my tests these work well on all platforms & browsers.
	w += 32;
	h += 96;
	var win = window.open(url,
	name, 
	'width=' + w + ', height=' + h + ', ' +
	'location=no, menubar=no, ' +
	'status=no, toolbar=no, scrollbars=no, resizable=no');
	win.resizeTo(w, h);
	win.focus();
}
