function changeActionAndSubmit(sUrl, formName) { 
	var	form = document.getElementById(formName); 
	form.action = sUrl; 
	form.submit(); 
}
function fcsubmitOnly(form){				
	document.getElementById(form).submit();
}				
function fcsubmit(form,url,id){				
	document.getElementById("redirectTo").value=url;
	document.getElementById("selectedCondition").value=id;
	document.getElementById(form).submit();
}
function fcsubmitGralSearch(form,url,id){				
	document.getElementById("redirectGralSearchTo").value=url;
	document.getElementById("selectedGralSearchCondition").value=id;
	document.getElementById(form).submit();
}
function changeRedirectTabForm(url){				
	document.getElementById("redirectTabTo").value=url;
	document.getElementById("frmTab").submit();
}
function fcsubmitCommonCondition(form,url,id){				
	document.getElementById("redirectCommonConditionsTo").value=url;
	document.getElementById("selectedCommonCondition").value=id;
	document.getElementById(form).submit();
}
function fcsubmitAllCondition(form,url,id){				
	document.getElementById("redirectTo").value=url;
	document.getElementById("selectedCondition").value=id;
	document.getElementById(form).submit();
}								
function fcsubmitCommonSymptom(form,url,id){				
	document.getElementById("redirectCommonSymptomTo").value=url;
	document.getElementById("selectedCommonSymptom").value=id;
	document.getElementById(form).submit();
}
function fcsubmitAllSymptom(form,url,id){				
	document.getElementById("redirectSymptomTo").value=url;
	document.getElementById("selectedSymptom").value=id;
	document.getElementById(form).submit();
}				
function fcsubmitbuttonSymptom(form){				
	document.getElementById("hiddenbutton").value=true;
	document.getElementById(form).submit();
}
function fcsubmitbuttonSymptomFromInputText(e, form){
	var key=e.keyCode || e.which;
	if (key==13){										
		document.getElementById("hiddenbutton").value=true;											
		document.getElementById(form).submit();
	}
}
function fcsubmitContentsSymptoms(form,url,id){
	document.getElementById("redirectSymptomTo").value=url;
	document.getElementById("selectedIdKeywordSymptom").value=id;
	document.getElementById(form).submit();
}
function fcsubmitContentsTreatments(form,url,id){
	document.getElementById("redirectTreatmentTo").value=url;
	document.getElementById("selectedIdKeywordTreatment").value=id;
	document.getElementById(form).submit();
}
function fcsubmitContentsConditions(form,url,id){
	document.getElementById("redirectTo").value=url;
	document.getElementById("selectedIdKeywordCondition").value=id;
	document.getElementById(form).submit();
}												
function fcsubmitTreatment(form,url,id){				
	document.getElementById("redirectTreatmentTo").value=url;
	document.getElementById("selectedTreatment").value=id;
	document.getElementById(form).submit();
}
function fcsubmitHeaderByButton(form,url){				
	document.getElementById("redirectHeaderTo").value=url;
	document.getElementById("selectedData").value=document.getElementById("txtGralSearch").value;
	document.getElementById(form).submit();
}
function fcsubmitCBS(form,url,id){				
	document.getElementById("redirectConditionsBySymptomTo").value=url;
	document.getElementById("selectedConditionBySymptom").value=id;
	document.getElementById(form).submit();
}
function fcsubmitCBT(form,url,id){				
	document.getElementById("redirectConditionsByTreatmentTo").value=url;
	document.getElementById("selectedConditionByTreatment").value=id;
	document.getElementById(form).submit();
}				
function alphabeticSearch(form,character){			    
	document.getElementById("character").value=character;
	document.getElementById(form).submit();
}
function alphabeticSearchSymptom(form,character){			    
	document.getElementById("characterSymptom").value=character;
	document.getElementById(form).submit();
}
function alphabeticSearchTreatment(form,character){			    
	document.getElementById("characterTreatment").value=character;
	document.getElementById(form).submit();
}				
function changeSection(form,section){			    
	document.getElementById("sectionAction").value=section;
	document.getElementById(form).submit();
}
function changeSymptomSection(form,section){			    
	document.getElementById("sectionSymptomAction").value=section;
	document.getElementById(form).submit();
}
function changeTreatmentSection(form,section){			    
	document.getElementById("sectionTreatmentAction").value=section;
	document.getElementById(form).submit();
}
function optionSelected(option){			    
	document.getElementById("optionFeedbackSelected").value=option;					
}

function optionAskSelectedSend(option){
	document.getElementById("optionAskSelected").value=option;					
}

function optionAboutSelectedSend(option){
	document.getElementById("optionAboutSelected").value=option;					
}

function optionAgeSelectedSend(option){
	document.getElementById("optionAgeSelected").value=option;					
}

function optionGenderSelectedSend(option){
	document.getElementById("optionGenderSelected").value=option;					
}

function optionCountrySelectedSend(option){
	document.getElementById("optionCountrySelected").value=option;					
}

function optionCountrySelectedSend2(){
	var indice = document.formFeedback.country.selectedIndex;
	var nivel = document.formFeedback.country.options[indice].value;
	document.getElementById("optionCountrySelected").value=nivel;					
}



function printPreview() {
	window.open("/MHP_ENTERPRISEWEB/jsps/PrintContent/view.jsp",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=798, ,height=607, top=110, left=110 "
					);
}

function printText(noPrint){
	document.getElementById(noPrint).style.display='none';
	window.print();
	document.getElementById(noPrint).style.display='inline';
	window.close();
}

function sendEmail() {
	window.open("/portal/portal/mhp/SendEmailEN",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=796, height=630, top=65, left=127 "
					);
}

function printPreviewAllArticle(){
	window.open("/portal/portal/mhp/PrintAllArticleEN",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=798, height=607, top=94, left=127 "
					);
}

function printPreviewAE() {
	window.open("/MHP_ENTERPRISEWEB/jsps_AE/PrintContent/view.jsp",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=725, height=607, top=110, left=110 "
					);
}

function sendEmailAE() {
	window.open("/portal/portal/mhp/SendEmailAE",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=796, height=630, top=65, left=127 "
					);
}

function printPreviewAllArticleAE(){
	window.open("/portal/portal/mhp/PrintAllArticleAE",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=780, height=607, top=94, left=127 "
					);
}


function enviarCorreo(form,divOcultar){
	document.getElementById(divOcultar).style.display='none';
	fcsubmitOnly(form);
}

function hideDiv(divOcultar,option){
	document.getElementById(divOcultar).style.display='none';
}

function showDiv(divMostrar,option){
	document.getElementById(divMostrar).style.display='inline';
}

function showDisclaimerEN(){
window.open("/MHP_ENTERPRISEWEB/jsps/disclaimer/fastDisclaimer.jsp",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=780, height=607, top=94, left=127 "
					);
}

function showDisclaimerAE(){					   
window.open("/MHP_ENTERPRISEWEB/jsps_AE/disclaimer/fastDisclaimer.html",
					"_blank",
					"toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=no, width=780, height=607, top=94, left=127 "
					);
}

function showRSSList(){					   
window.open("/MHP_ENTERPRISEWEB/jsps/header/rss-pages.jsp",
					"_blank",
					"toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=780, height=607, top=94, left=127 "
					);
}

function showRSSList2(){					   
window.open("/MHP_ENTERPRISEWEB/jsps/header/rss-pages.html",
					"_blank",
					"toolbar=yes, location=yes, directories=yes, status=yes, menubar=yes, scrollbars=yes, resizable=yes, copyhistory=no, width=780, height=607, top=94, left=127 "
					);
}