function help_activator(act, lan){
         if(act=='click'){
               if(document.getElementById('help').className=='show_me'){
			            document.getElementById('help').className = 'hide_me';
			            document.getElementById('order_image').src = "imgs/layout/"+lan+"/navigation/help.jpg";
               }else{ document.getElementById('help').className='show_me';
                      document.getElementById('order_image').src = "imgs/layout/"+lan+"/navigation/help_pressed.jpg";  
               }
			}else if(act=='over'){
			          document.getElementById('order_image').src = "imgs/layout/"+lan+"/navigation/help_pressed.jpg";
			}else if(act=='out'){
			      if(document.getElementById('help').className=='show_me'){
					      document.getElementById('order_image').src = "imgs/layout/"+lan+"/navigation/help_pressed.jpg";
			      }else{document.getElementById('order_image').src = "imgs/layout/"+lan+"/navigation/help.jpg";
					}			
			}
}   
function company_activator(){
        if(document.getElementById('user_company').checked){
               document.getElementById('user_cname').className = 'pminput';
	            document.getElementById('user_nip').className = 'pminput';
	            document.getElementById('user_cname_l').className = 'pmlabel';
	            document.getElementById('user_nip_l').className = 'pmlabel';
          }
        else{ 
               document.getElementById('user_cname').className = 'hide_me';
	            document.getElementById('user_nip').className = 'hide_me';
	            document.getElementById('user_cname_l').className = 'hide_me';
	            document.getElementById('user_nip_l').className = 'hide_me';
          }      
          
}   

function display_image(lsname, alt, imgsrc, szer, wys, lan) {
			hwidth = szer - 93;
			dwidth = szer - 22;
			PreView = window.open("", "Preview",
			"left=100,top=100,width="+szer+",height="+wys+", toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
			PreView.document.open();
			PreView.document.write("<html><head>");
			PreView.document.write("<title>" +lsname+ "</title>");
			PreView.document.write("<link rel='stylesheet' type='text/css' href='tech/style.css' /></head><body class='small'>");
			PreView.document.write("<div class='main' style='width:"+dwidth+"'><div class='header'><div class='hleft'>&nbsp;</div>");
         PreView.document.write("<div style='width:"+hwidth+";display:inline;float:left;text-align:center;'>"+lsname+"</div>");
         PreView.document.write("<div class='hright'>&nbsp;</div></div>");
			PreView.document.write("<img src='"+ imgsrc +"' />");
			PreView.document.write("<span class='podpis2'>" +alt+ "</span>");
			PreView.document.write("<form><input type='image' style='border:0; margin-bottom:10px;' src='imgs/layout/"+lan+"/navigation/close.jpg' value='close' ");
			PreView.document.write("onmouseover=\"this.src='imgs/layout/"+lan+"/navigation/close_pressed.jpg'\"");
			PreView.document.write("onmouseout=\"this.src='imgs/layout/"+lan+"/navigation/close.jpg'\" onclick='window.close()'></form>");
			PreView.document.write("</div></body></html>");
			PreView.document.close();
}
