function goPage($sItem){
//  $("#Zap").appendTo("body")  ;
//var inp="<input type='text' name='goPage' value='"+$sItem+"'>"
 $("<input type='hidden' name='goPage' value='"+$sItem+"'>").appendTo("#Zap")  ;
// return false;
 // alert($sItem);
// var $frm=document.getElementById('Zap');
//$inp = document.createElement('input');
//$inp.type='hidden';
//$inp.name='goPage';
//$inp.value=$sItem;
//$frm.appendChild($inp);
//$("#Zap").submit();
$("form")[0].submit();


 //            document.getElementById('Zap').submit();

}

function lnkRzut($sRzut,$goInwest){
 var $frm=document.getElementById('Zap');
$inp = document.createElement('input');
$inp.type='hidden';
$inp.name='goInwest';
$inp.value=$goInwest;
$frm.appendChild($inp);
$inpA = document.createElement('input');
$inpA.type='hidden';
$inpA.name='rzut';
$inpA.value=$sRzut;
$frm.appendChild($inpA);

$inpB = document.createElement('input');
$inpB.type='hidden';
$inpB.name='linkA';
$inpB.value='rzuty';
$frm.appendChild($inpB);

$frm.submit();

}
function goInwest($sItem,$linkA){

 // alert($sItem);
 var $frm=document.getElementById('Zap');
$inp = document.createElement('input');
$inp.type='hidden';
$inp.name='goInwest';
$inp.value=$sItem;
$frm.appendChild($inp);
$inpA = document.createElement('input');
$inpA.type='hidden';
$inpA.name='linkA';
$inpA.value=$linkA;
$frm.appendChild($inpA);
$frm.submit();



 //            document.getElementById('Zap').submit();

}
       function goSprzet($sItem,$operacja){
  
 // alert($sItem);
 var $frm=document.getElementById('Zap');
$inp = document.createElement('input');
$inp.type='hidden';
$inp.name='grupa';
$inp.value=$sItem;
$frm.appendChild($inp);

$inpA = document.createElement('input');
$inpA.type='hidden';
$inpA.name='operacja';
$inpA.value=$operacja;
$frm.appendChild($inpA);

$frm.submit();



 //            document.getElementById('Zap').submit();

}

 function getSize(){
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  $sizeAr=new Array;
  $sizeAr[0]=myWidth;
  $sizeAr[1]=myHeight;
  return $sizeAr;


}
  function noweOkno($link,$title) {



  $size=new Array;
  $size=getSize();


  $x=($size[0]*.5);
  $y=($size[1]*.5);
  $xx=(.5*$size[0])-(.5*$x)
  $yy=(.5*$size[1])-(.5*$y)
 //var bro=top.parent.selBrows();
 $param="scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,resizable=1,width="+$x+", height="+$y+", left="+$xx+", top="+$yy;
 window_handle = window.open($link,'nowe',$param);
 window_handle.focus();
  /*   */
}



