
// a quick browser heuristic check
navigator._IS_IE  = (navigator.userAgent.toLowerCase().indexOf("msie") > -1)
navigator._IS_MOZ = (document.implementation && document.implementation.createDocument)
/**
 * Error Dialog Box
 */
 
function showException( _name, _message, _fix, _trace )
{
	var args = new Object();
	args.name 	 = _name;
	args.message = _message;
	args.fix     = _fix;
	args.trace   = _trace;
	window.showModalDialog( "dlgExceptionWindow.jsp", 
							args ,
							"dialogHeight: 400px; dialogWidth: 300px; edge: Raised; center: Yes; help: No; resizable: Yes; status: No;"
							);
}

// Short warning about browser compatibility issues ... 

window.onload = function () {
	if ((navigator._IS_IE || navigator._IS_MOZ || 
	    document.cookie.indexOf("kx0jadflxc0=1") > 0) && gBrowserDetect.browser != "Safari" )  
	{
		return
	}
	
	var msg = "Your browser\n\n   " + 
	      navigator.userAgent + "\n\n" +
	      "may not be fully supported by the BPEL console. \n\n" +
	      "An upgrade to IE 6+ or Mozilla/Firefox 1.5+ may be required."
	      
	alert(msg)	
	// do it just once, don't nag ...
	document.cookie = "kx0jadflxc0=1"
}
	
