
/**
 *
 */
var popup = null;

/**
 *
 */
function goTo(url)
{
	document.location.href = url;
}

/**
 *
 */
function closePopUp()
{
	popup.close();
}

/**
 *
 */
function deleteItem(url)
{
	if(confirm("Weet u zeker dat u dit item wilt verwijderen?"))
		goTo(url);
}

/**
 *
 */ 
function openPopUp(url, width, height)
{
	if(width  == null)	width  = 800;
	if(height == null)	height = 600;
	
	popup = window.open(url, "", "height=" + height + ",scrollbars=yes,width=" + width);
}

/**
 *
 */
function setFocus(id)
{	
	document.getElementById(id).focus();
}

/**
 *
 */
function refreshPage()
{
	document.location.href = document.location.href;
}

/**
 *
 */
function updateBrowser()
{
	$(document).ready(function()
	{
		$('body').prepend
		(
			$('<div></div>')
			.attr('id', 'ie6')
			.html('Uw browser wordt niet meer ondersteund. <a href="/upgrade.html">Klik hier</a> om uw browser te upgraden')
		);
	});
}

$(document).ready(function()
{
    // - bind the coolbox event to an <a> or <input>
    $('.CoolBox').coolbox();
});
