function getAllSheets() {
	if( !window.ScriptEngine && navigator.__ice_version ) { return document.styleSheets; }
	if( document.getElementsByTagName ) { var Lt = document.getElementsByTagName('LINK'), St = document.getElementsByTagName('STYLE');
	} else if( document.styleSheets && document.all ) { var Lt = document.all.tags('LINK'), St = document.all.tags('STYLE');
	} else { return []; } for( var xIndex = 0, os = []; Lt[xIndex]; xIndex++ ) {
		var rel = Lt[xIndex].rel ? Lt[xIndex].rel : Lt[xIndex].getAttribute ? Lt[xIndex].getAttribute('rel') : '';
		if( typeof( rel ) == 'string' && rel.toLowerCase().indexOf('style') + 1 ) { os[os.length] = Lt[xIndex]; }
	} for( var xIndex = 0; St[xIndex]; xIndex++ ) { os[os.length] = St[xIndex]; } return os;
}
function changeStyle() {
	window.userHasChosen = window.MWJss;
	for( var xIndex = 0, ss = getAllSheets(); ss[xIndex]; xIndex++ ) {
		if( ss[xIndex].title ) { ss[xIndex].disabled = true; }
		for( var yIndex = 0; yIndex < arguments.length; yIndex++ ) { if( ss[xIndex].title == arguments[yIndex] ) { ss[xIndex].disabled = false; } }
} }

function openPopup(POPUP)
  {
  var popup =  window.open(POPUP,'popup','resizable=yes,scrollbars=yes,width=400,height=600');
  popup.focus();
  }

