function yaImgChange(imgNum,imgSrc) {
document.images[imgNum].src = imgSrc;
}
var win;
function popschedule(schedule) {
	if (schedule == "dental") {
		if (document.dentalschedule.STATE.options[0].selected == true) {
			alert("Please select your state.");
		} else {
			if (win) {
				win.close();
			}
			win = window.open("/docs/" + document.dentalschedule.STATE.options[document.dentalschedule.STATE.selectedIndex].value + ".pdf","","scrollbars,resizable=yes,width=680,height=400,left="+(screen.width - 680) / 2+",top="+(screen.height - 400) / 2);
			if (!win.opener) {
				win.opener = window;
			}
		}
	} else if (schedule == "vision") {
			if (win) {
				win.close();
			}
			win = window.open("/docs/vision.pdf","","scrollbars,width=680,height=400,left="+(screen.width - 680) / 2+",top="+(screen.height - 400) / 2);
			if (!win.opener) {
				win.opener = window;
			}
	}
}


<!-- Copyright 2000 William Bontrager
//
// This JavaScript will let you put a "bookmark me" instructional prompt 
//      on your web pages. Because different browsers handle bookmarks 
//      differently, the prompt can be different depending on the browser. 
//      You can construct either a clickable link or a button when the 
//      browser is IE. When the browser is Netscape, you can instruct the 
//      visitor that the "Control" and "D" combination will bookmark the 
//      page. You can specify a different text prompt when the browser is 
//      neither Netscape nor IE. (Note: The IE versions we tested on 
//      Macintosh does not act the same as IE versions on PC. Thus, the Mac 
//      gets its own text prompt.)
//
// Customization of this JavaScript code is only two steps. Then, wherever 
//      you want the bookmark prompt, use the example code presented in the 
//      BODY section of this example web page.
//


// Step 1:
// Specify the text prompt for Macintosh and the different PC browsers.
TextPromptMacintosh = "Use Command/Apple-D to bookmark this page";
TextPromptIE = "Bookmark this Page";
TextPromptNetscape = "Use Control-D to bookmark this page";
TextPromptOther = "Don't forget to bookmark NorthOlmstedKids.org!";


// Step 2:
// The PC IE prompt can be a link or a button; specify "yes" or "no" for each.
IElinkPrompt = "yes";
IEbuttonPrompt = "no";


// End of customization.


// PrintPrompt() determines which prompt is appropriate and writes it.
function PrintPrompt() {
if((navigator.userAgent.indexOf('Mac') != -1) && ((navigator.appName.indexOf('Netsca') != -1) || (navigator.appName.indexOf('Naviga') != -1) || (navigator.appName.indexOf('Micros') != -1))) {
//	document.write(TextPromptMacintosh);
	return;
	}
if((navigator.appName.indexOf('Netsca') != -1) || (navigator.appName.indexOf('Naviga') != -1)) {
//	document.write(TextPromptNetscape);
	return;
	}
if(navigator.appName.indexOf('Micros') != -1) {
	if((IElinkPrompt == 'yes') || (IEbuttonPrompt != 'yes')) { document.write('<a href="javascript:BookmarkIEonPC()" class="EZFOOTERLINKS">' + TextPromptIE + '</a>'); }
	if(IEbuttonPrompt == 'yes') { document.write('<form><input type="button" value="' + TextPromptIE + '" onClick="BookmarkIEonPC()"></form>'); }
	return;
	}
document.write(TextPromptOther);
}

// BookmarkIEonPC() launches IE's bookmark dialog box (on PC only).
function BookmarkIEonPC() {
if(navigator.appName.indexOf('Microsoft') != -1) { 
window.external.AddFavorite(location.href,document.title); }
// window.external.AddFavorite('http://www.northolmstedkids.org',document.title); }
}

// Open a small window
function newWinSmall(newURL, wWidth, wHeight) 
 { 
 var newwin = window.open( newURL, "PopWin", "toolbar=no, location=no, scrollbars=yes, resizable=yes, width=" + wWidth + ", height=" + wHeight );
 } 
