function openAlumni(){
	switch(browsername)	{
		case "MSIE":
			ypos = document.body.scrollTop;
			break;
		case "NS":
			ypos = window.scrollY;
			break;
		default:
			ypos = document.body.scrollTop;
			break;
	}
	
	  var myWidth = 0, myHeight = 0;
	  if( typeof( window.innerWidth ) == 'number' ) {
	    //Non-IE
	    myWidth = window.innerWidth;
	    myHeight = window.innerHeight;
	  } else if( document.documentElement &&
	      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
	    //IE 6+ in 'standards compliant mode'
	    myWidth = document.documentElement.clientWidth;
	    myHeight = document.documentElement.clientHeight;
	  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
	    //IE 4 compatible
	    myWidth = document.body.clientWidth;
	    myHeight = document.body.clientHeight;
	  }
	  //window.alert( 'Width = ' + myWidth );
	  //window.alert( 'Height = ' + myHeight );

	//if(siteversion != "html"){
		//alert(ypos);					
	//	contenu = "<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'  codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='447' HEIGHT='179' id='popup_calendar' ALIGN=''><PARAM NAME=movie VALUE='flash/popup_calendar.swf'> <PARAM NAME=loop VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#F4F3F0> <EMBED src='flash/popup_calendar.swf' loop=false menu=false quality=high wmode=transparent bgcolor=#F4F3F0  WIDTH='447' HEIGHT='179' NAME='popup_calendar' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";
	//	document.getElementById("popupcalendar").style.top = ypos + (myHeight/2) - 179;
	//	document.getElementById("popupcalendar").style.visibility = "visible";
	//	document.getElementById("popupcalendar").innerHTML = contenu;
	//}else{
		//alert(ypos);
		document.getElementById("popupalert_html").style.top = ypos + (myHeight/2) - 166;
		document.getElementById("popupalert_html").style.visibility = "visible";
		document.getElementById("popupalert_html").style.display = "block";
	//}
}

function closePopupAlumni(){
		document.getElementById("popupalert_html").style.visibility = "hidden";
		document.getElementById("popupalert_html").style.display = "none";
	document.getElementById("validate_send").style.visibility = "hidden";
}
function checkEmail(to_check) {
	if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,5})+$/.test(to_check)){
	return (true)}
}
function validate_form_alumni(){
	Goon = 0;
	var msg = "";
	if(document.forms.send.name_title.value == ""){
		Goon = Goon + 1;
		msg = msg + "Title<br>";
	}
	if(document.forms.send.join_name.value == ""){
		Goon = Goon + 1;
		msg = msg + "Name<br>";
	}
	if(document.forms.send.join_lastname.value== ""){
		Goon = Goon + 1;
		msg = msg + "Last Name<br>";
	}
	if(document.forms.send.address.value == ""){
		Goon = Goon + 1;
		msg = msg + "Address<br>";
	}
	if(document.forms.send.city.value == ""){
		Goon = Goon + 1;
		msg = msg + "City<br>";
	}
	if(document.forms.send.province.value == ""){
		Goon = Goon + 1;
		msg = msg + "Province<br>";
	}
	if(document.forms.send.country.value == " "){
		Goon = Goon + 1;
		msg = msg + "Country<br>";
	}
	if(document.forms.send.postal_code.value == ""){
		Goon = Goon + 1;
		msg = msg + "Postal Code<br>";
	}
	if(!checkEmail(document.forms.send.join_email.value)){
		Goon = Goon + 1;
		msg = msg + "Email Address<br>";
	}
	if(document.forms.send.telephone1.value == ""){
		Goon = Goon + 1;
		msg = msg + "Telephone #1<br>";
	}
	if(document.forms.send.camper.checked){
		if(document.forms.send.camper_year1.value == "yyyy" || document.forms.send.camper_year2.value == "yyyy"){
			Goon = Goon + 1;
			msg = msg + "History: Camper<br>";
		}
	}
    
    /*	
	if(document.forms.send.ranger.checked){
		if(document.forms.send.ranger_year1.value == "yyyy"){
			Goon = Goon + 1;
			msg = msg + "History: Ranger<br>";
		}
	}
    */

	if(document.forms.send.citlit.checked){
		if(document.forms.send.citlit_year1.value == "yyyy"){
			Goon = Goon + 1;
			msg = msg + "History: CIT / LIT<br>";
		}
	}
	if(document.forms.send.staff.checked){
		if(document.forms.send.staff_year1.value == "yyyy" || document.forms.send.staff_year2.value == "yyyy"  || document.forms.send.staff_position.value == ""){
			Goon = Goon + 1;
			msg = msg + "History: Staff<br>";
		}
	}	
	if(document.forms.send.volunteer.checked){
		if(document.forms.send.volunteer_year1.value == "yyyy, yyyy, yyyy, yyyy"){
			Goon = Goon + 1;
			msg = msg + "History: Volunteer<br>";
		}
	}
	if(document.forms.send.parent.checked){
		if(document.forms.send.parent_year1.value == "yyyy, yyyy, yyyy, yyyy" || document.forms.send.child_name.value == "" ){
			Goon = Goon + 1;
			msg = msg + "History: Parent<br>";
		}
	}
	
	if(Goon == 0)
	{
	document.forms.send.method="post";
	document.forms.send.action = "db_join_alumni.asp";
	document.forms.send.submit();	
	}else{
	
		switch(browsername)	{
			case "MSIE":
				ypos = document.body.scrollTop;
				break;
			case "NS":
				ypos = window.scrollY;
				break;
			default:
				ypos = document.body.scrollTop;
				break;
		}
	
		  var myWidth = 0, myHeight = 0;
		  if( typeof( window.innerWidth ) == 'number' ) {
		    //Non-IE
		    myWidth = window.innerWidth;
		    myHeight = window.innerHeight;
		  } else if( document.documentElement &&
		      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		    //IE 6+ in 'standards compliant mode'
		    myWidth = document.documentElement.clientWidth;
		    myHeight = document.documentElement.clientHeight;
		  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		    //IE 4 compatible
		    myWidth = document.body.clientWidth;
		    myHeight = document.body.clientHeight;
		  }
		document.getElementById("popupalert_html").style.top = ypos + (myHeight/2) - 166;
		document.getElementById("popupalert_html").style.visibility = "visible";
		document.getElementById("popupalert_html").style.display = "block";
		document.getElementById("popupalert_html_txt").innerHTML = "<b>Please fill or correct the following field(s) before sending:</b><br><br>" + msg;
	}
}


function closeAlert(){
	document.getElementById("popupalert_html").style.visibility = "hidden";
}
