
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->


<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->


function sendValtoHidden(val,fieldname)
{

	var txt_name;
	txt_name = fieldname;
	var nn;
	nn = val;

document.form.elements[txt_name].value=nn;

}


function toggle(targetId ){
		 if (document.getElementById){
			target = document.getElementById(targetId);
				if (target.style.display == "none"){
					target.style.display = "";
				} else {
					target.style.display = "none";
				}
			}
		}
		
function showhide(targetId){
		 if (document.getElementById){
		 	target = document.getElementById(targetId);
					if (target.style.display == ""){
						target.style.display = "none";
					    } 
					 else {
						target.style.display = "";
					    } 
						
			}	
		
}


function show(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.display = "";
			}	
		
}	

function hide(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.display = "none";
			}	
		
}
//change price tags in courses
function changeTag(selObj,targetId,targetId2){ 

	var selectedoption = selObj.options[selObj.selectedIndex].value;

	if (selectedoption=='Intensive'){
			 
		changecss(targetId,'display','none');
		changecss(targetId2,'display','');
		}
	else {
		changecss(targetId2,'display','none');
		changecss(targetId,'display','');
				}
	
}

function mark_locations(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.color = "red";
			target.style.background = "#CCC";			
			}	
		
}

function navA(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.color = "C84B1F";
			target.style.background = "#FFF";			
			}	
		
}

function dim_locations(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.color = "";
			target.style.background = "white";			
			}	
		
}

function navP(targetId){

		 if (document.getElementById){
		 	target = document.getElementById(targetId);
			target.style.color = "";
			target.style.background = "";			
			}	
		
}


function jumpMenu(selObj){ 

var selectedoption = selObj.options[selObj.selectedIndex].value;
window.location.href='/centers/centers.asp?RefCtr=' + selectedoption

}

function jumpMenuDE(selObj){ 

var selectedoption = selObj.options[selObj.selectedIndex].value;
window.location.href='/de/centers/centers.asp?RefCtr=' + selectedoption

}

function jumpMenuFR(selObj){ 

var selectedoption = selObj.options[selObj.selectedIndex].value;
window.location.href='/fr/centers/centers.asp?RefCtr=' + selectedoption

}

function jumpMenuIT(selObj){ 

var selectedoption = selObj.options[selObj.selectedIndex].value;
window.location.href='/it/centers/centers.asp?RefCtr=' + selectedoption

}

function jumpMenuES(selObj){ 

var selectedoption = selObj.options[selObj.selectedIndex].value;
window.location.href='/es/centers/centers.asp?RefCtr=' + selectedoption

}

/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: kojak :: http://commoncoder.com */

// fieldname, warningname, remainingname, maxchars
function CheckFieldLength(fn,wn,rn,mc) {
  var len = fn.value.length;
  if (len > mc) {
    fn.value = fn.value.substring(0,mc);
    len = mc;
  }
  document.getElementById(wn).innerHTML = len;
  document.getElementById(rn).innerHTML = mc - len;
}

	
	
	function changecss(theClass,element,value) {
	//Last Updated on May 21, 2008
	//documentation for this script at
	//http://www.shawnolson.net/a/503/altering-css-class-attributes-with-javascript.html
	 var cssRules;
	 if (document.all) {
	  cssRules = 'rules';
	 }
	 else if (document.getElementById) {
	  cssRules = 'cssRules';
	 }
	 var added = false;
	 for (var S = 0; S < document.styleSheets.length; S++){
	  for (var R = 0; R < document.styleSheets[S][cssRules].length; R++) {
	   if (document.styleSheets[S][cssRules][R].selectorText == theClass) {
	    if(document.styleSheets[S][cssRules][R].style[element]){
	    document.styleSheets[S][cssRules][R].style[element] = value;
	    added=true;
		break;
	    }
	   }
	  }

	  if(!added){
	  if(document.styleSheets[S].insertRule){
			  document.styleSheets[S].insertRule(theClass+' { '+element+': '+value+'; }',document.styleSheets[S][cssRules].length);
			} else if (document.styleSheets[S].addRule) {
				document.styleSheets[S].addRule(theClass,element+': '+value+';');
			}
	  }
	 }
	}

