/*
 * (c) 2008 Lynth Webdevelopment
 * No parts of this code may be reused without consent
 * of the original author.
 * http://www.lynth.nl
 */
function login_click(e)
{
	e = e || window.event;
	if (e.ctrlKey)	{
		document.location = '/login';
	}
}

function showDiv(B,A)
{
	if (A) {
		$('#' + B).show();
	} else {
		$('#' + B).hide();
	}
}
function toggleDiv(A)
{
    $('#' + A).toggle();
}
function validate(A,B)
{
    if(window.RegExp)
    {
        reg=new RegExp(A);
				return reg.test(B)
    }
    return false
}
