﻿var tags = new Array('p', 'li');
var pixelArray = new Array('9','10','11','12','14','16');
var initSize = 2;

function fontSizer(inc,unit) {
if (!document.getElementById)
return;
var size = initSize;
size += inc;
if (size < 0 ) {
size = 0;
}
if (size > 5 ) {
size = 5;
}
initSize = size;
getBody = document.getElementsByTagName('body')[0];
for (i = 0 ; i < tags.length ; i++ ) {
getallTags = getBody.getElementsByTagName(tags[i]);
for (k = 0 ; k < getallTags.length ; k++)
getallTags[k].style.fontSize = (unit=='px') ? pixelArray[size]+unit: emArray[size]+unit;
}
}


function opisfunkcji(theURL,winName,features) {
  window.open(theURL,'Opis','width=640,height=400,scrollbars=yes');
}


function ShowHistory(id)
{
     NewWindow=window.open("/Oprogramowanie/historiaWersji.aspx?AppId=" + id,"History","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=620,height=520");
     NewWindow.focus();
}

function otworz(theURL,winName,features) {
  window.open(theURL,winName,features);
}
