alwaysstatus = "";

function setStatusBar(tekst,always) {
	if(always == 1)
		alwaysstatus = tekst
	window.status = tekst;
	//alert(tekst);
}

function setStatusBarOut() {
	window.status = alwaysstatus;
}

function resizeWin(picWidth, picHeight){
	posLeft = parseInt((screen.width/2)-parseInt(picWidth/2));
	posTop	= parseInt((screen.height/2)-parseInt(picHeight/2)-50);
           
	window.resizeTo(picWidth, picHeight);
	window.moveTo(posLeft, posTop);
           
	if (window.focus) self.focus();
}
