function newWin(num){
w2=window.open("content.php?"+num,"nwin","width=560,height=400,directories=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no, left=50, top=20");
w2.focus();
return ;
}
/*
function kard_zap_DoFSCommand(cmd,arg){
if(cmd=="newWin"){
	newWin(arg);
}
return false;
}


function ZO_obl_DoFSCommand(cmd,arg){
if(cmd=="newWin"){
	newWin(arg);
}
return false;
}

function schema_ses_DoFSCommand(cmd,arg){
if(cmd=="newWin"){
	newWin(arg);
}
return false;
}
*/
function printWin(num){
w2=window.open("print.php?"+num,"nwin","width=560,height=400,directories=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no, left=50, top=20");
w2.focus();
return ;
}
function gazeta(_path){
w2=window.open(_path,"nwin","width=800,height=600,directories=yes,toolbar=yes,scrollbars=yes,resizable=yes,menubar=yes, left=0, top=0");
w2.focus();
return ;
}
function photo(_path){
w2=window.open(_path,"nwin","width=450,height=300,directories=no,toolbar=no,scrollbars=yes,resizable=yes,menubar=no, left=10, top=10");
w2.focus();
return ;
}

var req;

function loadXMLDoc(url) {
    // branch for native XMLHttpRequest object
    if (window.XMLHttpRequest) {
        req = new XMLHttpRequest();
        req.onreadystatechange = processReqChange;
        req.open("GET", url, true);
        req.send(null);
    // branch for IE/Windows ActiveX version
    } else if (window.ActiveXObject) {
        req = new ActiveXObject("Microsoft.XMLHTTP");
        if (req) {
            req.onreadystatechange = processReqChange;
            req.open("GET", url, true);
            req.send();
        }
    }
  
}

function processReqChange(){
  if (req.readyState == 4) { 
            var response;
          response = "STATUS: " + req.status + "\n" + req.responseText
           var responseStatus = "";
           try {
             responseStatus = req.status + "";
           } catch (e) {
             responseStatus = "ERROR WHILE RETRIEVING STATUS; MAYBE UNABLE TO CONNECT.";
           }
           response = "STATUS: " + responseStatus + "\n" + req.responseText;
         }
         
         alert(response);
}
