function Kolor(nazwa) {
document.getElementById('kolor').innerHTML = nazwa;
}

function AddComment() {
  browser_width = document.body.clientWidth;
  browser_height = document.body.clientHeight;
  if(document.getElementById && !document.all) {
  browser_width = window.innerWidth;
  browser_height = window.innerHeight;  
  }
document.getElementById('AddComment').style.display = "block";
szer = document.getElementById('AddComment').clientWidth;
wys = document.getElementById('AddComment').clientHeight
//document.getElementById('AddComment').innerHTML = browser_width+"  "+browser_height+"  "+szer+"  "+wys+"  "+window.pageYOffset;



document.getElementById('AddComment').style.left = (browser_width/2)-(szer/2)-1+'px';
if(document.getElementById && !document.all) {
document.getElementById('AddComment').style.top = (browser_height)-(wys)-200+window.pageYOffset+'px';
  }
else if (window.opera && window.print) {
document.getElementById('AddComment').style.top = (browser_height)-(wys)-200+window.pageYOffset+'px';
}
else {
document.getElementById('AddComment').style.top = (browser_height)-(wys)-200+'px';
}
}

function CloseComment() {
document.getElementById('AddComment').style.display = "none";
document.komentarz.reset();
}
function ShowSizes(id) {
noweOkno = window.open("rozmiary,"+id+".html", 'okienko', 'menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=no, status=no, width=650, height=450')
}

function selColor(n) {
  document.getElementById("zamowienie_kolor").selectedIndex = n-1; // tak jak w m-produkt.html
}

