// break out of frames
if (self.top != self)
	top.location.href = self.location.href;
// 

//-->

function DT() {
	var dtw;
	var where = 'http://rus.delfi.lv/detrans.php'; 
	var _width = 510;
	var _heigth = 480;
	var _left = screen.width / 2 - _width / 2;
	var _top = screen.height / 2 - _heigth / 2;

	if ((dtw == null) || (dtw.closed)) {
		dtw = window.open(where, 'Detransliterator', 'width='+_width+',height='+_heigth+',left='+_left+',top='+_top+',scrollbars=yes');
	} else {
		dtw.location = where;
	}
	dtw.focus();
}

function defined(identifier) {
	return (typeof(identifier) == 'undefined' ? false : true)
}

function openWin(url,name,newWidth,newHeight,newTop,newLeft) {
	var newWinOptions='status=no,';
	var settings=eval('navigator.'+name);
	if (settings) {
		if (settings.top) newWinOptions+='top='+settings.top+',';
		if (settings.left) newWinOptions+='left='+settings.left+',';
		if (settings.height) newWinOptions+='height='+settings.height+',';
		if (settings.width) newWinOptions+='width='+settings.width+',';
	} else {
		if (defined(newTop)) newWinOptions+='top='+newTop+',';
		if (defined(newLeft)) newWinOptions+='left='+newLeft+',';
		newWinOptions+='height='+(defined(newHeight)?newHeight:400)+',';
		newWinOptions+='width='+(defined(newWidth)?newWidth:600)+',';
	}
	newWinOptions+='resizable=yes';
	var w = window.open(url, name, newWinOptions);
	
	/*
	* Patch Netscape2 (Mac/X11), Internet Explorer 3 bugs
	* ignores first argument of window.open() (Netscape2(Mac/X11),IE3)
	* doesn't set opener proerty (Netscape2,IE3.0)
	* uses an object detection model for maximum compatibility
	*/
	if (w != null) {
		if (w.location == null) w.location = url;
		if (w.opener == null) w.opener = self;
	}
	if (!w.closed) w.focus();
}


