// JavaScript Document
<!--


function addarticle_redir() {
	      if (document.getElementById('addtype').options[0].selected) {
			      document.location.href = "/mojekonto/dodaj-artykul" ;
			  return false;
		  } else {
			      document.location.href = "/mojekonto/dodaj-niusa" ;
			          return false;
			   } 
	}
	
function check_article_form2() {
    if (document.getElementById('szukaj').value.length==0 ) {
		 alert('Wpisz słowa kluczowe.');
		 return false;
    }
}

/*

function next_article(http_request) {
	
	
        if (http_request.readyState == 4) {
            if (http_request.status == 200) {
               var xmldoc = http_request.responseXML;
			   			   
			   
			   var article_id = xmldoc.getElementsByTagName('article_id').item(0);   
			   var title = xmldoc.getElementsByTagName('title').item(0);  
			   var description = xmldoc.getElementsByTagName('description').item(0);  
			   var category = xmldoc.getElementsByTagName('category').item(0);
			   var category_id = xmldoc.getElementsByTagName('category_id').item(0);
			   var rate = xmldoc.getElementsByTagName('rate').item(0);  
			   var image_s = xmldoc.getElementsByTagName('image_s').item(0);
			   var img_s_w = xmldoc.getElementsByTagName('img_s_w').item(0);
			   var img_s_h = xmldoc.getElementsByTagName('img_s_h').item(0);
			   var login = xmldoc.getElementsByTagName('login').item(0);
			   var user_rate = xmldoc.getElementsByTagName('user_rate').item(0);
			   var next_offset = xmldoc.getElementsByTagName('next_offset').item(0);
			   
			   var html_cont='';
			   
			   
	           html_cont ='<div style=\"padding:0px 7px 5px 0px;float:left;\">';
	           if (image_s.firstChild.data!='-1') {
				   html_cont=html_cont+'<a href=\"artykul/id/'+article_id.firstChild.data+'\" class=\"img_hover2\"><img src=\"photos/'+image_s.firstChild.data+'\" style=\"border:1px solid #fff;\" width=\"'+Math.round(0.9*img_s_w.firstChild.data)+'\"  height=\"'+Math.round(0.9*img_s_h.firstChild.data)+'\" /></a>';
			   }
	   	       else {
				html_cont=html_cont+'<a href=\"artykul/id/'+article_id.firstChild.data+'\" class=\"img_hover2\"><img src=\"photos/default/no-img-article.gif\" style=\"border:1px solid #fff;\" width=\"80\"  height=\"60\" /></a>';   
			   }

               html_cont=html_cont+'</div><div style=\"float:left;width:225px;\"><a href=\"artykul/id/'+article_id.firstChild.data+'\" class=\"forum_prev_link\"><strong style=\"font-size:12px;\">'+title.firstChild.data+'</strong><br />'+description.firstChild.data+'...</a><div style=\"margin-bottom:3px;font-size:11px;\"><a href=\"profil/'+login.firstChild.data+'\" class=\"blue_link\">'+login.firstChild.data+' ('+user_rate.firstChild.data+')</a>,&nbsp; Kategoria: <a href=\"artykuly/cat/'+category_id.firstChild.data+'\" class=\"pink_link\">'+category.firstChild.data+'</a></div><div style=\"font-size:12px;float:left;\">';

	           n_stars=Math.round(rate.firstChild.data);
			   for (i=0;i<n_stars;i++) { 
			      html_cont=html_cont+'<img src=\"img/star.gif\" style=\"vertical-align:text-bottom;\" width=\"16\" height=\"16\" />';
			   }
			   
			   
			    html_cont=html_cont+' &nbsp;Ocena: <strong style=\"color:#ff0099;\">'+rate.firstChild.data+'</strong></div><div style=\"float:right;\"><a href=\"javascript:makeRequest(\'/ajax/prev_article.php\',\'offset='+next_offset.firstChild.data+'\',\'3\');\"><img src=\"img/arrow_next3.gif\" vspace=\"2\" name=\"img22\" id=\"img22\" onmouseover=\"MM_swapImage(\'img22\',\'\',\'img/arrow_next4.gif\',1)\" onmouseout=\"MM_swapImgRestore()\"  width=\"16\" border=\"0\" height=\"13\" /></a></div><div class=\"clear-both2\"></div></div><div class=\"clear-both2\"></div>';
			   
	          document.getElementById('article_box').innerHTML = html_cont;
	  
	     
            } else {
               // problem z zapytaniem
            }
        }
	  
	  
}
*/

//-->