function NewWindow(mypage, myname, w, h, scroll) {
	
	//var winl = (screen.width - w) / 2;
	var winl = 10;
	//var wint = (screen.height - h) / 2;
	wint = 200;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	
function NewWindowCenter(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	
function changeFontSize(sheetnum) {
				
					d = document;
						if (d.getElementsByTagName('link')[0].href) // d.getElementById('fontSizes').href
						{
							// change stylesheet
							if (sheetnum==0) {
							d.getElementsByTagName('link')[0].href = "styles.css";
							}else{
							d.getElementsByTagName('link')[0].href = "styles" + sheetnum + ".css";														
							}
							
						}				
			
			}

var doAlerts=false;
function changeSheets(whichSheet){
  whichSheet=whichSheet-1;
  if(document.styleSheets){
    var c = document.styleSheets.length;
    if (doAlerts) alert('Change to Style '+(whichSheet+1));
    for(var i=0;i<c;i++){
      if(i!=whichSheet){
        document.styleSheets[i].disabled=true;
      }else{
        document.styleSheets[i].disabled=false;
      }
    }
  }
}
