function print_popup(URL,WIDTH,HEIGHT) {
WIDTH = parseInt(WIDTH);
HEIGHT = parseInt(HEIGHT);

var TOP = (screen.height - HEIGHT)/2;
var LEFT = (screen.width - WIDTH)/2;

if (TOP < 1 || TOP > screen.height) TOP = 0;
if (LEFT < 1 || LEFT > screen.width) LEFT = 0;

SETTINGS = "toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,top=" + TOP + ",left=" + LEFT + ",width=" + WIDTH + ",height=" +HEIGHT;
window.open(URL, 'pop_up',SETTINGS);
}



function print_swf(path,x,y) {
document.write("<embed src='"+path+"' quality='high' width='"+x+"' height='"+y+"' type='application/x-shockwave-flash' wmode='transparent' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>");
}


function change_img(path,img) {
self.document[path].src = img;
}




function defValue(path,val,index) {
if(index == 0) {
  if(self.document.getElementById(path).value == val) self.document.getElementById(path).value = '';
} else {
  if(self.document.getElementById(path).value == "") self.document.getElementById(path).value = val;
}
}



function focuzz () {
document.formular.cesta.focus()
}




function printIframe(path) {
   if (window.innerHeight) {
      /* NN4 a kompatibilní prohlížeče */
      hei = window.innerHeight;
   } else if(document.documentElement && document.documentElement.clientHeight) {
      /* MSIE6 v std. režimu - Opera a Mozilla již uspěly s window.innerHeight */
      hei = document.documentElement.clientHeight;
   } else if(document.body && document.body.clientHeight) {
	/* starší MSIE + MSIE6 v quirk režimu */
      hei = document.body.clientHeight;
   } else {
       hei = 1000;
   }

final = hei - 70;

document.write("<iframe src='"+path+"' width='100%' height='"+final+"' frameborder='0' scrolling='no'></iframe>");

}






function change_class(obj) {

if(self.document.getElementById(obj).getAttribute("class") == "seo" || self.document.getElementById(obj).getAttribute("className") == "seo") {
css = "checkboxyplus";
} else {
css = "seo";
}

self.document.getElementById(obj).setAttribute("class", css); 
self.document.getElementById(obj).setAttribute("className", css);

}

function change_class1(obj) {

if(self.document.getElementById(obj).getAttribute("class") == "seo" || self.document.getElementById(obj).getAttribute("className") == "seo") {
css = "priklady";
} else {
css = "seo";
}

self.document.getElementById(obj).setAttribute("class", css); 
self.document.getElementById(obj).setAttribute("className", css);

}
