
	var item_count = 0;
	/*var tabel_array = new Array(item_count);*/
	var col_width = 120;
	var col_count; 

	function initPager() {
		/*for (i=0; i<tabel_array.length; i++ )
		{
			tabel_array[i] = new objTabel_item(i,"555 speciel transmitter"+i, "typenum"+i, "../images/bg_logo.gif", "funktion"+i,"montering"+i, "input"+i, "output"+i, "forsyning"+i, "kanaler"+i, "opsætning"+i, "features"+i, "empty"+i, "empty"+i, "datablad"+i, "manual"+i, "EX spændings-forsyning"+i, "atex"+i, "ul"+i, "csa"+i, "fm"+i, "empty"+i);
		}*/
		col_count = parseInt((mwidth-130)/col_width);
		col_count = 3;
		if (col_count>item_count) {
			col_count=item_count;
		}

		if (item_count>0) {
			document.getElementById("inet_search_content").style.display = "none";
			fillPager(0)		
		} else {
			document.getElementById("inet_search_content").style.display = "";
		}
	}

	function fillPager(pager_begin) {
		var tabel;
		var lag;
		var next = pager_begin+1;
		var previous = pager_begin-1;
		
		tabel = "<table cellpadding='0' cellspacing='0' border='0' class='pre_produkt_tabel' width='100%'>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td width='160' align='left'>";
		tabel = tabel + "<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td>&nbsp;</td>";
		tabel = tabel + "<td>&nbsp;</td>";
		tabel = tabel + "</tr>";
		tabel = tabel + "</table>";
		tabel = tabel + "</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td align='center' class='pre_produkt_header'>"+tabel_array[i].typenum+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td>";
		tabel = tabel + "<table cellpadding='0' cellspacing='0' border='0' width='100%'>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td>";
		if (pager_begin>0)
		{
			tabel = tabel + "<span class='pre_pager_menu' onclick='fillPager("+previous+")'><img src='./site/images/ikoner/ik_previous.gif' height='16' width='16' alt='Previous' onMouseOver=\"this.src='./site/images/ikoner/ik_previous_mo.gif'\" onMouseOut=\"this.src='./site/images/ikoner/ik_previous.gif'\"></span>";
		}
		tabel = tabel + "</td>";
		tabel = tabel + "<td style='text-align: right;' align='right'>";
		if (pager_begin<(item_count-col_count))
		{
			tabel = tabel + "<span class='pre_pager_menu' onclick='fillPager("+next+")'><img src='./site/images/ikoner/ik_next.gif' height='16' width='16' alt='Next' onMouseOver=\"this.src='./site/images/ikoner/ik_next_mo.gif'\" onMouseOut=\"this.src='./site/images/ikoner/ik_next.gif'\"></span>";
		}
		tabel = tabel + "</td>";
		tabel = tabel + "</tr>";
		tabel = tabel + "</table>";
		tabel = tabel + "</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_header'>"+tabel_array[i].name+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr height='1'>";
		tabel = tabel + "<td class='pre_produkt_header desc'>Specifications</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td><img src='../images/blank.gif' width='1'></td>";
			}
		tabel = tabel + "</tr>"
		tabel = tabel + "<tr>"
		tabel = tabel + "<td class='pre_produkt_td desc'>Click here for block diagram</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td valign='middle' class='pre_produkt_td'>"+tabel_array[i].imgsrc+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Application</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec1+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Function</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec2+"</td>";
			}
		tabel = tabel + "</tr>"
		tabel = tabel + "<tr>"
		tabel = tabel + "<td class='pre_produkt_td desc'>Mounting</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec3+"</td>";
			}
		tabel = tabel + "</tr>"
		tabel = tabel + "<tr>"
		tabel = tabel + "<td class='pre_produkt_td desc'>Input</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec4+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Output</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec5+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Supply</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec6+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Channels</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec7+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Configuration</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec8+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td desc'>Features</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td'>"+tabel_array[i].spec9+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_header desc'>PDF-documents</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td>&nbsp;</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td width='70' class='pre_produkt_td1 desc'>Data sheet</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf1+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>Manual</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td align='center' class='pre_produkt_td1'>"+tabel_array[i].pdf2+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>Declaration of conformity</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf3+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>ATEX certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf4+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>UL certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf5+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>CSA certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf6+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>FM certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf7+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>Marine certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf8+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>NEPSI certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf9+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>SIL-certificate / declaration</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf10+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>FMEDA report</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf11+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>Assessment report</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf12+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>GOST certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf13+"</td>";
			}
		tabel = tabel + "</tr>";
		tabel = tabel + "<tr>";
		tabel = tabel + "<td class='pre_produkt_td1 desc'>IECEx certificate</td>";
			for (i=pager_begin; i<pager_begin+col_count; i++ )
			{
				tabel = tabel + "<td class='pre_produkt_td1'>"+tabel_array[i].pdf14+"</td>";
			}
		tabel = tabel + "</tr>";

		tabel = tabel + "</table>";

		lag = document.getElementById("produkt_pager");
		lag.innerHTML = tabel;
		document.getElementById("inet_search_txt").innerHTML = '<h1>' + item_count + '&nbsp;results in the search<br>&nbsp;</h1>';
	}

	function objTabel_item(id, name, typenum, imgsrc, spec1, spec2, spec3, spec4, spec5, spec6, spec7, spec8, spec9, spec10, pdf1, pdf2, pdf3, pdf4, pdf5, pdf6, pdf7, pdf8, pdf9, pdf10, pdf11, pdf12, pdf13, pdf14) {
		this.id = id;
		this.name = name;
		this.typenum = typenum;
		this.imgsrc = imgsrc;
		this.spec1 = spec1;
		this.spec2 = spec2;
		this.spec3 = spec3;
		this.spec4 = spec4;
		this.spec5 = spec5;
		this.spec6 = spec6;
		this.spec7 = spec7;
		this.spec8 = spec8;
		this.spec9 = spec9;
		this.spec10 = spec10;
		this.pdf1 = pdf1;
		this.pdf2 = pdf2;
		this.pdf3 = pdf3;
		this.pdf4 = pdf4;
		this.pdf5 = pdf5;
		this.pdf6 = pdf6;
		this.pdf7 = pdf7;
		this.pdf8 = pdf8;
		this.pdf9 = pdf9;
		this.pdf10 = pdf10;
		this.pdf11 = pdf11;
		this.pdf12 = pdf12;
		this.pdf13 = pdf13;
		this.pdf14 = pdf14;
	}


	function select_all() {
		var col = document.getElementsByName("pcol")
		for (var i = 0; i < col.length; i++){
			col[i].checked = true;
		}
		document.category_form.submit();
	}