/**
 * @Author   Johan
 */

function capitalize(string)
{
	string=string.toLowerCase();
	var words=string.split(' ');
	var returnString='';
	for (var i=0;i<words.length;i++)
	{
		returnString+=words[i].substring(0, 1).toUpperCase()+words[i].substring(1, words[i].length)+' ';
	}
	return returnString.substring(0, returnString.length-1);
}



function hide(id)
{
	document.getElementById(id).style.display="none";
}



function seek(id)
{
 document.getElementById(id).style.display="block";
}



function hideNseek(id)
{
	if(isSet(document.getElementById(id)))
	{
		if(document.getElementById(id).style.display=="none" || document.getElementById(id).style.display=="")
		{
		document.getElementById(id).style.display="block";
		}
		else
		{
		document.getElementById(id).style.display="none";
		}
	}
}