function appTimeOut(time, url,message1,message2) {
	setTimeout('handleTimeout("'+ url +'","'+ message1 +'","'+ message2 +'")', time);
}

function handleTimeout(url,message1,message2) {
	if (typeof jQuery != "undefined") {
		jQuery('#global').remove();
		jQuery('body').css({
			backgroundColor : '#ccc'
		}).append('<div id="timeout"><p>'+message1+' <a style="color: #000" href="'+ url +'">'+message2+'</a>.</p></div>').find('#timeout').css({
			backgroundColor : '#fff',
			border : '2px solid #ccc',
			left : '40%',
			margin : '1em',
			position : 'absolute',
			right : '40%',
			top : '40%'
		});
	}
}

