function isValidEmailAddress(inEmailAddress)
{
    var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
    
    return re.test(inEmailAddress);
}

function popWindow(url, w, h)
{
	var pWin = window.open(url,'pWin','width=' + w + ',height=' + h + ',scrollbars,resizable');
	pWin.moveTo(screen.width/2-w/2, screen.height/2-h/2);
	pWin.focus();
}

function setBGColour(inColourSpec)
{
	document.body.style.background = inColourSpec;
}
