	function create_contactform(){
		arr=['Contact form','Press and news contact form'];
		btn='<INPUT onClick="j_cont(1)" STYLE=BACKGROUND-COLOR:transparent; TYPE=button ID=cont VALUE="Contact form">'
		 //  +'<INPUT onClick="j_cont(2)" STYLE=BACKGROUND-COLOR:transparent; TYPE=button ID=press VALUE="Press and news contact form">'
		aa='';
		for(i=0;i<factoryvar.length;i++){
			if(factoryvar[i][1]){aa+='<OPTION VALUE='+(i+1)+'>'+factoryvar[i][0]}
		};
		bb='';
		for(i=0;i<countries.length;i++){
			if(countries[i]=='Outside Europe'){
				bb=bb
				  +'<OPTION VALUE="">'
				  +'<OPTION STYLE=COLOR:#BABABA VALUE="">'+countries[i]
			}else{
				bb=bb
				  +'<OPTION VALUE="'+countries[i]+'">'+countries[i]
			};
		};
		aa='<BR><BR><TABLE WIDTH="100%"><TR><TD ID=pfacility NOWRAP WIDTH=140><B>Production facility</B>&nbsp;</TD><TD>'
		  +'<SELECT onChange="get_facility(this.value)">'
			  +'<OPTION STYLE=COLOR:#BABABA VALUE="">Production facility'
			  +aa
		  +'</SELECT></TD></TR><TR><TD COLSPAN=2>'
		  +'<DIV STYLE=POSITION:relative;TOP:5; ID=display></DIV>'
		  +'</TD></TR><TR><TD ID=soffice><B>Sales office</B>&nbsp;</TD><TD>'
		  +'<SELECT onChange="get_salesoffice(this)">'
			  +'<OPTION STYLE=COLOR:#BABABA VALUE="">Sales office'
			  +bb
		  +'</SELECT></TD></TR><TR><TD COLSPAN=2>'
		  +'<DIV STYLE=POSITION:relative;TOP:5; ID=display2></DIV></TD></TR></TABLE><DIV ID=xxx><BR></DIV>'
		document.getElementById('contactbar').innerHTML=btn+aa;
	};
	function get_facility(a){
		d=document.getElementById('display');
		if(a>0){
			a=factoryvar[(a-1)][1];
			d.style.border='1px #000000 solid';
			d.style.width='100%';
			d.style.padding='2px';
			
		}else{
			a=''
			d.style.border='';
			d.style.width='';
			d.style.padding='';
		};
		d.innerHTML=a;
		location.href=('#pfacility');
	};
	function get_salesoffice(a){
		d=document.getElementById('display2');
		ax='';axx='';
		if(a.value!=''){
			a2=','+a.value+','
			for(i=0;i<salesoffices.length;i++){
				e=','+salesoffices[i][3]+',';
				if(e.search(a2)>-1){
					ax=salesoffices[i][1]+'<BR>'+salesoffices[i][2];
					salesoff=salesoffices[i][3].split('\,').sort();
					axx=salesoff+'';
				};
			};
			if(!ax){
				ax=salesoffices[0][1]+'<BR>'+salesoffices[0][2];
				axx=salesoffices[0][3];
			};
			axx=axx.replace(/\,/g,'<BR>');
			ax=ax+'<BR><BR>Sale team is responsible for the sales in<BR><BR>'+axx+'<BR>'
			d.style.border='1px #000000 solid';
			d.style.width='100%';
			d.style.padding='2px';
			
		}else{
			a=''
			d.style.border='';
			d.style.width='';
			d.style.padding='';
		};
		d.innerHTML=ax;
		location.href=('#soffice');
	};
	function j_cont(a){
		b=document.getElementById('ifr');
		b.src='ABOUT:blank';
		b.reload;
		b.style.visibility='visible';
		b.style.width=500;
		b.style.left=100;
		b.style.top=10;
		if(a==1){
			b.src='../../html/generel/contact.htm';
			b.style.height=400;
		}else{
			b.src='../../html/generel/newscontact.htm';
			b.style.height=300;
		};
			b.reload;
	};
	document.write(''
		      +'<IFRAME NAME=ifr ID=ifr STYLE=POSITION:absolute;VISIBILITY:hidden;WIDTH:0;HEIGHT:0;></IFRAME>');
	create_contactform();
