function getrandom(a,b) {
	var min_random = a;
	var max_random = b;
	max_random++;
	var range = max_random - min_random;
	var n = Math.floor(Math.random()*range) + min_random;
	return n;
}

function ow(isrc,ititle) {
	mwin=window.open('','','width=510,height=340,scrolling=no,resizable=yes');
	mwin.document.open();
	mwin.document.write('<html><body style="margin:0px;padding:0px;">');
	mwin.document.write('<a href="#" onclick="window.close(); return false;" title="Кликните, чтобы закрыть окно"><img src="'+isrc+'" border="0" onload="window.resizeTo(this.width+8,this.height+30)"></a></body></html>');
}

function ow2(src,title) {
	mwin=window.open(src,'','width=600,height=550,scrollbars=yes,resizable=yes');
}