function popup(id,wid,hig,rez,scr) { window.open(id, '_blank', 'width=' + wid + ', height=' + hig + ' top=50, left=50, toolbar=0, status=0, menubar=0, directories=0, location=0, scrollbars=' + scr + ', copyhistory=0, resizable=' + rez ); } var d="0123456789";
function stbar(){ var text = tekstid[q]; q += 1; if (q == tekstid.length){ q = 0; } anime(text, 2, 0); }
function anime(text, b, a){ b = b - 1; var status = text.substring(0,a); for(var charA = a; charA < text.length; charA++){ status += d.charAt(Math.round(Math.random()*d.length)); } window.status = status; if(b > 0){ var c = "anime('" + text + "'," + b + "," + a + ");"; setTimeout(c, 20); }else{ if (a < text.length){ var e = a + 1; var c = "anime('" + text + "',2," + e + ");"; setTimeout(c, Math.round(20*(a+3)/(a+1))); }else{ setTimeout("stbar();", timeV); } } }
function sendmail() { window.open('./?sendmail', '_blank', 'width=320, height=260, toolbar=0, status=0, menubar=0, directories=0, location=0, scrollbars=no, copyhistory=0, resizable=no'); }
function savepage() { window.open('./?savepage', '_blank', 'width=320, height=260, toolbar=0, status=0, menubar=0, directories=0, location=0, scrollbars=no, copyhistory=0, resizable=no'); }
function printpage() {
	window.open('./?print', '_blank', 'width=675, height=450, toolbar=0, status=0, menubar=0, directories=0, location=0, scrollbars=yes, copyhistory=0, resizable=no'); }

function edit(link) {
	window.open(link, '_blank', 'width=760, height=500, toolbar=no,directories=no,location=no,status=no,menubar=no,resizable=yes,scrollbars=no, copyhistory=0, resizable=no');
}

function show_hide(a) {
	if (document.all(a).style.display == "none") {
		document.all(a).style.display = "block";
	} else {
		document.all(a).style.display = "none";
	}
}


