// javascript document
// raycms-version raycms010
// build 1-bms.nl added function FORM_Congressform()
/*
function FORM_Congressform(formname, divname){

	errortext = '';
	
	if (findObj('FORM_CongressLogin_TXT').value == '') errortext = errortext + 'U dient een code in te voeren.'
	
	if (errortext != ''){
	
		alert (errortext);
		
	}else{

		AjaxSend(formname, divname);

	}
	
}
*/

function FORM_SendForm (thetype){
	
	errortext = '';
	
	if (thetype == 'orderform'){

		if (errortext == '') AjaxSend('FORM_orderform', 'AjaxOutput2', 'errordiv', 'orderform'); // build 10.
		
		document.location.href = "#thetop";
			
			
	}else if (thetype == 'mailform'){
	
		if (errortext == '') AjaxSend('FORM_Mailform', 'AjaxOutput2', 'errordiv', 'mailform'); // build 10.
		
	}
	
}

function FORM_showproducts(indicator, numberofproducts){ // build 10 for swiss orderform
	
	findObj('prodformtrheader_' + indicator).className = 'orderformsubheader';
	
	for (x=1; x <= numberofproducts; x++) findObj('prodformtrprod_' + indicator + "_" + x).className = '';
	
}

function FORM_toggleshowproducts(indicator, numberofproducts){
	
	TheFirstrow = findObj('prodformtrheader_' + indicator);
	
	if (TheFirstrow.className == 'orderformsubheader'){
		
		TheFirstrow.className = 'invisible';
		for (x=1; x <= numberofproducts; x++) findObj('prodformtrprod_' + indicator + "_" + x).className = 'invisible';
		
	}else{
		
		TheFirstrow.className = 'orderformsubheader';
		for (x=1; x <= numberofproducts; x++) findObj('prodformtrprod_' + indicator + "_" + x).className = '';
		
	}
	
}

function FORM_resetform(pagename){

	history.go(0);
	
}

function FORM_Kontatktform(select_object){
	
	if(select_object.options[select_object.selectedIndex].value == 'Farmacovigilance') window.location = 'Feedback/home.htm';
	
	if(select_object.options[select_object.selectedIndex].value == 'Qualitaetsmaengel')  window.location = 'Feedback/Qualit__tsm__ngel.htm';
	
	
}

function kompendium(arg){ 
	if(disclaimer()){
		var setting="";//"toolbar=yes,location=no,directories=yes,menubar=yes,scrollbars=yes,width=650, height=600, left=100, top=25"; 
		var printscreen=window.open("","",setting); 
		printscreen.document.open(); 
		printscreen.document.write(PrintHeader);
		printscreen.document.write('<body onLoad="searchForm.submit()"><FORM NAME="searchForm" ACTION="http://www.kompendium.ch/Result.aspx?lang=de" METHOD=POST><INPUT type="hidden" name="Search_Value_required" value="Bitte geben Sie mindestens 2 Zeichen ein!"><Input type="Hidden" NAME="Search_Operator" VALUE="BEGINS_WITH"><INPUT TYPE="hidden" NAME="Search_Value" VALUE="' + arg + '"><INPUT TYPE="hidden" NAME="Search_Type" VALUE="p"><INPUT TYPE="hidden" NAME="SearchFormsSubmit" VALUE="GO"></FORM><script type="text/javascript">searchForm.submit();</script></body></html>'); 
		printscreen.document.close(); 
		printscreen.focus();
	}
}