// JavaScript Document

var repName = new Array;
repName[0] = "<b>Please Select a Site</b>"
repName[1] = "<b>Ambuehl School</b><br>Vicki Goodhue<br>Kathy Sobota<br>661-0400 School<br>488-3158 fax"
repName[2] = "<b>Arroyo Vista School</b><br>Heidi McSweeney<br>Julie Standley<br>459-0215 School<br>589-6924 fax"
repName[3] = "<b>Barcelona School</b><br>Roni Schwartz<br>581-5240 School<br>581-6897 fax"
repName[4] = "<b>Bathgate School</b><br>Debra Weller<br>348-0451 School<br>348-0426 fax"
repName[5] = "<b>Benedict School</b><br>Jon Pierce<br>Danielle Ridill<br>498-6617 School<br>361-8462 fax"
repName[6] = "<b>Bergeson School</b><br>Celeste Gray<br>643-1540 School<br>643-7931 fax"
repName[7] = "<b>Canyon Vista School</b><br>Lori Walker<br>234-5941 School<br>360-6273 fax"
repName[8] = "<b>Castille School</b><br>Barbara DeLaura<br>830-3710 School<br>586-6739 fax"
repName[9] = "<b>Chaparral School</b><br>Jim Trager<br>234-5349 School<br>234-5363 fax"
repName[10] = "<b>Concordia School</b><br>Robin Palmer492-3060 School<br>361-8652 fax"
repName[11] = "<b>Crown Valley School</b><br>Jackie Goff<br>Nancy Vaughan<br>495-5115 School<br>495-6103 fax"
repName[12] = "<b>R.H.Dana School</b><br>Susan Paradise<br>496-5784 School<br>488-3867 fax"
repName[13] = "<b>R.H.Dana ENF School</b><br>Linda Mendel<br>496-6151 School<br>489-8479 fax"
repName[14] = "<b>Del Obispo School</b><br>Rebecca Harris<br>493-4013 School<br>488-3062 fax"
repName[15] = "<b>Don Juan Avila Elem School</b><br>Brian Valerie<br>Kelle Guziak<br>349-9452 School<br>362-9076 fax"
repName[16] = "<b>Hankey School</b><br>Susie Moothart<br>Gerri Paulicivic<br>364-5502 School<br>347-0536 fax"
repName[17] = "<b>HIdden Hills School</b><br>Tony Beltran<br>495-0050 School<br>495-6920 fax"
repName[18] = "<b>Kinoshita School</b><br>Damon Ridgway<br>489-2131 School<br>234-0405 fax"
repName[19] = "<b>Ladera Ranch</b><br>Kathy Plambeck<br>Deanna Maass<br>234-5915 School<br>364-1149 fax"
repName[20] = "<b>Laguna Niguel</b><br>Scott Clark<br>234-5308  School<br>360-4407  fax"
repName[21] = "<b>Las Flores Elem School</b><br>Melissa Anderson<br>589-6935 School<br>589-9286 fax"
repName[22] = "<b>Las Palmas School</b><br>Linda More<br>Barbara Skelly<br>492-3456 School<br>369-1427 fax"
repName[23] = "<b>Lobo School</b><br>Julie Payne<br>Cindy Billy<br>366-6740 School<br>366-0764 fax"
repName[24] = "<b>Malcom School</b><br>Karen Christensen<br>Carol Choquehuanca<br>248-0542 School<br>248-7697 fax"
repName[25] = "<b>Marblehead School</b><br>Dave Dunbeck<br>234-5339 School<br>361-361-0706 fax"
repName[26] = "<b>Moulton School</b><br>Steve Ciolek<br>495-0440 School<br>495-5233 fax"
repName[27] = "<b>Oak Grove School</b><br>Nancy Skelley<br>360-9001 School<br>360-7372 fax"
repName[28] = "<b>Oso Grande School</b><br>Debbie Jungwirth<br>360-9001 School<br>360-7372 fax"
repName[29] = "<b>Palisades School</b><br>Jennifer Mooney<br>496-5942 School<br>496-7290 fax"
repName[30] = "<b>Reilly School</b><br>Debra Sheehan<br>454-1590 School<br>588-6315 fax"
repName[31] = "<b>San Juan School</b><br>Saul Martinez Ramirez<br>493-4533 School<br>240-9174 fax"
repName[32] = "<b>Tijeras Creek School</b><br>Michael Stanley<br>766-3427 School<br>858-3862 fax"
repName[33] = "<b>Viejo School</b><br>Anne Horrigan<br>582-2424 School<br>348-2499 fax"
repName[34] = "<b>Vista del Mar School</b><br>Vanessa Martin Stone<br>234-5950 School<br>940-0262 fax"
repName[35] = "<b>Wagon Wheel School</b><br>Rita Beninga<br>Barbara Spero<br>589-1953 School<br>589-2813 fax"
repName[36] = "<b>George White School</b><br>Blake Campbell<br>249-3875 School<br>249-5316 fax"
repName[37] = "<b>Wood Canyon School</b><br>Marian Fife<br>448-0012 School<br>448-0017 fax"

var repNameMS = new Array;
repNameMS[0] = "<b>Please Select a Site</b>"
repNameMS[1] = "<b>Aliso Viejo Middle School</b><br>Amber Mills<br>Michelle Miller<br>831-2622 School<br>643-2784 fax"
repNameMS[2] = "<b>Arroyo Vista Middle School</b><br>Justine Lawson<br>234-5951 School<br>589-6924 fax"
repNameMS[3] = "<b>Bernice Ayers Middle School</b><br>Elizabeth Lewis<br>Loreeta Vavrick<br>366-9607 School<br>366-1519 fax"
repNameMS[4] = "<b>Don Juan Avila Middle School</b><br>Christina McKinley<br>Chuck Waterman<br>362-0348 School<br>362-9076 fax"
repNameMS[5] = "<b>Ladera Ranch Middle School</b><br>Lori Bailey<br>Michelle McGowen<br>234-5922 School<br>364-1149 fax"
repNameMS[6] = "<b>Las Flores Middle School</b><br>Matt Atilano<br>Barbara Coppola<br>589-6543 School<br>589-9286 fax"
repNameMS[7] = "<b>Marco Forster Middle School</b><br>Kathy Ward<br>Kay Barker<br>234-5907 School<br>488-3567 fax"
repNameMS[8] = "<b>Newhart Middle School</b><br>Steve Ireland<br>Lindy Donsker<br>855-0162 School<br>770-1262 fax"
repNameMS[9] = "<b>Niguel Hills Middle School</b><br>Bryan Nelles<br>Stephen McCullough<br>234-5360 School<br>249-2069 fax"
repNameMS[10] = "<b>Shorecliffs Middle School</b><br>Bill Reames<br>Liz Balducci<br>498-1660 School<br>498-0826 fax"
repNameMS[11] = "<b>Vista del Mar Middle School</b><br>Kim Hanley<br>234-5955 School<br>940-0262 fax"

var repNameHS = new Array
repNameHS[0] = "<b>Please Select a Site</b>"
repNameHS[1] = "<b>Aliso Niguel High School</b><br>Marsha Jenkins<br>Debra Martin<br>Robert Morgan<br>Barbara Rock-Chavez<br>831-5590 School<br>448-9854 fax"
repNameHS[2] = "<b>Capistrano Valley High School</b><br>Jim Corbett<br>Michael Grabowski<br>Brian Manning<br>Rebecca McClellan<br>364-6100 School<br>347-1298 fax"
repNameHS[3] = "<b>Dana Hills High School</b><br>Connie Pettijohn<br>Bill Prestridge<br>Mike Weinell<br>496-6666 School<br>489-8317 fax"
repNameHS[4] = "<b>San Clemente High School</b><br>John Bandaruk<br>Karen Curcio<br>Danica Stender<br>Andea Buckman<br>Greg Young<br>492-4165 School<br>361-5175 fax"
repNameHS[5] = "<b>San Juan Hills High School</b><br>Diane Sanchez<br>Fernanda Villalba<br>234-5310 School<br>766-3370 fax"
repNameHS[6] = "<b>Tesoro High School</b><br>Peter Chance<br>Dee Dee Spencer<br>Amy Varrichio<br>Mike Feyk<br>234-5310 School<br>766-3370 fax"
repNameHS[7] = "<b>Serra High School <br>(Fresh Start, Colinas & Choose)</b><br>Robyn Nixon<br>496-1504 Fresh Start<br>489-7216 Serra<br>496-2007 fax"

var repNameIT = new Array
repNameIT[0] = "<b>Please Select a Site</b>"
repNameIT[1] = "<b>Psychologists</b><br>Pam Ender<br>496-5942 School"
repNameIT[2] = "<b>Speech Pathologists</b><br>Laura Hanaford 234-5505 (RHDana ENF)<br>Nicole Godfrey<br>Mike Delfosse (CVHS)"
repNameIT[3] = "<b>Music - D.O.</b><br>Robyn Hervey<br>"
repNameIT[4] = "<b>Special Ed Secondary</b><br>Lucille Robustelli<br>234-5310 (THS)<br>"
repNameIT[5] = "<b>District Nurses</b><br>Nancy Harman(CUSD)<br>234-9568 (Office)<br>489-7184 fax"
repNameIT[6] = "<b>Counselors</b><br>Nancy Wilburton (DHHS)<br>496-6666 (Office)<br>489-8317 fax"

var msg;
function getRep(form, layerID) {
	var schNumber;
	var currLayer;
	
	if(layerID == "layerElem") {
	 //alert(layerID);
	 //alert(form.elemNameSelect.length);
    	// Loops through all numbers in forms length to check which one was selected  /////////////
    	for(var i = 0; i<form.elemNameSelect.length; i++) {
				//alert(i);
    		if (form.elemNameSelect.options[i].selected)  {
    			schNumber = i
      		//alert(schNumber)
      		}  //end if
		}  //end for

    	//////////  Sets the text variable for the DIV box text entry  //////////////////////////////
		var msg = "<span class='titleWords'>Your Elementary <br>Representative Is;</span><br><span class='blackBoldSm'>" +  repName[schNumber] + "</span>";
    	
    	/////////   Sets the text in the DIV box dynamically.  First we check if there is a document, then
    	/////////   the document's layer object is accessed, followed by the layer object's innerHTML property being set  //////////////
		
		if (document.getElementById){
    		document.getElementById(layerID).innerHTML = msg;
    	}  //end if
	}  //end outer if
			
	else if(layerID == "layerMS") {
		//alert(layerID);
		// Loops through all numbers in forms length to check which one was selected  /////////////
		for(var i = 0; i<form.msNameSelect.length; i++) {
			//alert(i);
			if (form.msNameSelect.options[i].selected)  {
				schNumber = i
			} // end if
		}  //end for
		
		//////////  Sets the text variable for the DIV box text entry  //////////////////////////////
		var msg = "<span class='titleWords'>Your Middle School <br>Representative Is;</span><br><span class='blackBoldSm'>" +  repNameMS[schNumber] + "</span>";
		
		/////////   Sets the text in the DIV box dynamically.  First we check if there is a document, then
		/////////   the document's layer object is accessed, followed by the layer object's innerHTML property being set  //////////////
		//alert(msg);
		if (document.getElementById){
		document.getElementById(layerID).innerHTML = msg;
		}  //end if
	} // end elseif


	else if(layerID == "layerHS") {
		//alert(layerID);
		// Loops through all numbers in forms length to check which one was selected  /////////////
		for(var i = 0; i<form.hsNameSelect.length; i++) {
			//alert(i);
			if (form.hsNameSelect.options[i].selected)  {
				schNumber = i
			} // end if
		}  //end for
		
		//////////  Sets the text variable for the DIV box text entry  //////////////////////////////
		var msg = "<span class='titleWords'>Your High School <br>Representative Is;</span><br><span class='blackBoldSm'>" +  repNameHS[schNumber] + "</span>";
		
		/////////   Sets the text in the DIV box dynamically.  First we check if there is a document, then
		/////////   the document's layer object is accessed, followed by the layer object's innerHTML property being set  //////////////
		//alert(msg);
		if (document.getElementById){
		document.getElementById(layerID).innerHTML = msg;
		}  //end if
	} // end elseif


	if(layerID == "layerIT") {
		//alert(layerID);
		// Loops through all numbers in forms length to check which one was selected  /////////////
		for(var i = 0; i<form.itNameSelect.length; i++) {
			//alert(i);
			if (form.itNameSelect.options[i].selected)  {
				schNumber = i
			} // end if
		}  //end for
		
		//////////  Sets the text variable for the DIV box text entry  //////////////////////////////
		var msg = "<span class='titleWords'>Your High School <br>Representative Is;</span><br><span class='blackBoldSm'>" +  repNameIT[schNumber] + "</span>";
		
		/////////   Sets the text in the DIV box dynamically.  First we check if there is a document, then
		/////////   the document's layer object is accessed, followed by the layer object's innerHTML property being set  //////////////
		//alert(msg);
		if (document.getElementById){
		document.getElementById(layerID).innerHTML = msg;
		}  //end if
	} // end elseif
}  // end function



