function ProPpl()
{
var ppl ='ppl';
var select = document.form1.zpusob.value;   


if((select==2) || (select==4))
{
  zapnout(ppl);
}
else
{
   vypnout(ppl);
}

}

function NewS(link,w,h)
 {	
 	link = link.replace( "_ref", "" );
 	link = link.replace( ")", "" );
 	link = link.replace( "url(", "" );
 	window.open(link, "", "scrollbars=yes, directories=no,resizable=yes, width="+w+", height="+h);
 }
 
 function pridatBaleni(pocet)
 {

   var div = document.getElementById('baleni');
   /*
  var newdiv = document.createElement('input');
  var newdiv2 = document.createElement('input');
  var newdiv3 = document.createElement('label');
  var newdiv4 = document.createElement('label');
  
  newdiv.setAttribute('type','text');
  
  newdiv.setAttribute('name','cena[]');
  newdiv.setAttribute('value','');
  newdiv.setAttribute('size','4');
  
  newdiv2.setAttribute('type','text');
  newdiv2.setAttribute('name','baleni[]');
  newdiv2.setAttribute('value','');
  newdiv2.setAttribute('size','4');
  
  newdiv3.innerHTML = 'Cena zboží: ';
  newdiv4.innerHTML = 'Balení: ';
  newdiv.innerHTML = '&nbsp;,-';
  newdiv2.innerHTML = '<br />';  
  
  div.appendChild(newdiv3);
  div.appendChild(newdiv);
  div.appendChild(newdiv4);
  div.appendChild(newdiv2);  
  */
  
  div.innerHTML = div.innerHTML + '<label>Cena zboží:</label><input type=\'text\' name=\'cena[]\' size=\'4\' value=\'\' />&nbsp;,- Balení: <input type=\'text\' name=\'baleni[]\' size=\'4\' value=\'\' /> &nbsp; Stav zboží: &nbsp;<select name=\'stav[]\'><option>Skladem</option><option>Není skladem</option></select><br />'; 
 }

function dtl(obj,original)
{
	var x = document.getElementById( 'dtlimg' );
	var original2='url('+obj+')';
	if(x.style.backgroundImage==original2)
	{
   	x.style.backgroundImage = 'url('+original+')';
  }
  else
  {
   	x.style.backgroundImage = 'url('+obj+')';
  }

	//x.style.display='none';
}
function dtll(obj,original)
{
var v=document.one.src;
var v2=v.split("upload");
var c=obj.split("upload");

if(c[1]==v2[1])
{
document.one.src=original;
}
else
{
document.one.src=obj;
}
	//x.style.display='none';
}
function dtll2(obj,original)
{
var v=document.two.src;
var v2=v.split("upload");
var c=obj.split("upload");

if(c[1]==v2[1])
{
document.two.src=original;
}
else
{
document.two.src=obj;
}

	//x.style.display='none';
}
function zapnout(co)
{

var x = document.getElementById( co );
x.style.display='block';
}
function vypnout(co)
{
var x = document.getElementById( co );
x.style.display='none';
}

function okno2(odkaz) {
var odkaz;
sirka=screen.width;
vyska=screen.height;
okno=window.open("","1",'toolbar=0,location=0,scrollbars=1,width='+sirka+' ,height='+vyska+',resizable=no,top=5,left=5');

okno.document.write("<center><img src=\""+odkaz+"\" alt=\"obrazek\" style=\"cursor:pointer\" onclick=\"window.close()\" />&nbsp;");

}

