

function menuChangeOn(pObject) { 
	pObject.className = "button_over";
}

function menuChangeOff(pObject) { 
	pObject.className = "button";
}

function menuRChangeOn(pObject) { 
	pObject.className = "rbutton_over";
}

function menuRChangeOff(pObject) { 
	pObject.className = "rbutton";
}

function menuSChangeOn(pObject) { 
	pObject.className = "button_sover";
}

function menuSChangeOff(pObject) { 
	pObject.className = "button_s";
}

function blueBtnChangeOn(pObject) { 
	pObject.className = "bluebtn_over";
}

function blueBtnChangeOff(pObject) { 
	pObject.className = "bluebtn";
}

function redBtnChangeOn(pObject) { 
	pObject.className = "redbtn_over";
}

function redBtnChangeOff(pObject) { 
	pObject.className = "redbtn";
}

function contactActivate(pCurrent) { 
	imgElm = document.getElementById("contactImage");
	if ( imgElm.src.indexOf("ro") != -1 ) { 
		if ( pCurrent == 0 ) imgElm.src = "/ceaweb/img/img/contact_t_ro.gif";
		if ( pCurrent == 1 ) imgElm.src = "/ceaweb/img/img/contact_e_ro.gif";
		if ( pCurrent == 2 ) imgElm.src = "/ceaweb/img/img/contact_f_ro.gif";
	} else { 
		if ( pCurrent == 0 ) imgElm.src = "/ceaweb/img/img/contact_t_en.gif";
		if ( pCurrent == 1 ) imgElm.src = "/ceaweb/img/img/contact_e_en.gif";
		if ( pCurrent == 2 ) imgElm.src = "/ceaweb/img/img/contact_f_en.gif";
	}
	document.getElementById("contactBoxT").style.display = "none";
	document.getElementById("contactBoxE").style.display = "none";
	document.getElementById("contactBoxF").style.display = "none";
	if ( pCurrent == 0 ) document.getElementById("contactBoxT").style.display = "inline";
	if ( pCurrent == 1 ) document.getElementById("contactBoxE").style.display = "inline";
	if ( pCurrent == 2 ) document.getElementById("contactBoxF").style.display = "inline";
}

function submitForm(pToPageId){
	document.forms[0].pid.value = pToPageId;
	document.forms[0].ps.value = 0;
	document.forms[0].submit();
}

function submitFormName(pToPageId, pFormName){
	document.forms[pFormName].pid.value = pToPageId;
	document.forms[pFormName].ps.value = 0;
	document.forms[pFormName].submit();
}

function submitFormNameSave(pToPageId, pFormName){
	document.forms[pFormName].pid.value = pToPageId;
	document.forms[pFormName].ps.value = 1;
	document.forms[pFormName].submit();
}

function submitFormSave(pToPageId){
	document.forms[0].pid.value = pToPageId;
	document.forms[0].ps.value = 1;
	document.forms[0].submit();
}

function showDivision(pDivElement) { 
	document.getElementById(pDivElement + "DIV").style.display = "block";
}

function hideDivision(pDivElement) { 
	document.getElementById(pDivElement + "DIV").style.display = "none";
}

function controlDivision(pCheckBoxObj) { 
	if ( pCheckBoxObj.checked == true ) { 
		 hideDivision(pCheckBoxObj.name);
	}  else { 
		showDivision(pCheckBoxObj.name);
	}
}


function navToPage(pToPageId){
	  if ( window.location.href.indexOf( "lng=EN" ) >= 0) { 
	    location.href="web.jsp?pid=" + pToPageId + "&lng=EN";
	  } else { 
	    location.href="web.jsp?pid=" + pToPageId + "&lng=RO";
	  } 
	}

function navToAnchor(pToPageId, pAnchorName){
	  if ( window.location.href.indexOf( "lng=EN" ) >= 0) { 
	    location.href="web.jsp?pid=" + pToPageId + "&lng=EN#" + pAnchorName;
	  } else { 
	    location.href="web.jsp?pid=" + pToPageId + "&lng=RO#" + pAnchorName;
	  } 
	}

function popUpWindow(pHref){
	t = (screen.height-500)/2;
	l = (screen.width-700)/2;
	if ( t < 0 ) { t = 0; }
	if ( l < 0 ) { l = 0; }
	win = window.open(pHref, "ceaweb", "status=0, toolbar=0, location=0, menubar=0, directories=0, resizable=0, scrollbars=1,height=600, width=750, top=" + t + ", left=" + l);
}
