function popUp(whatType)
{
	var popUpURL, popupName, popUpParams;
	
	switch (whatType)
	{
	case "example" :
		popUpURL = documentRoot + 'example.phtml';
		popupName = 'example';
		popUpParams = 'toolbar=1,status=0,scrollbars=1,resizable=0,height=320,width=500';
		break;
		
	case "normal" :
		popUpURL = arguments[1];
		popupName = 'popup';
		popUpParams = 'toolbar=1,menubar=0,status=1,scrollbars=1,resizable=1,height=570,width=534';
		break;

	default :
		return false;
		break;
	}
	window.open(popUpURL, popupName, popUpParams);
}


// Browser detect for IE6 fixer code all over
var ver = navigator.appVersion.split('MSIE');     // This ridiculous bit of code must be...
var agentVerNo = parseFloat( ver[1] );  // ...on 2 lines.
if ( (agentVerNo >= 5.5) && (agentVerNo < 7) ) var isIe6 = true; // OK, so it's actually IE 5.5-6, but no one uses 5.5. We may as well give it a chance. Maybe we'll crash it and they'll upgrade.


