function openWIN(URL,WName,pic,alt,w,h,scr)
{
	sw = screen.width-100;
	sh = screen.availHeight-100;
	mtw = (screen.width-w)/2;
	mth = (screen.availHeight-h)/2;
	popup = window.open(URL,WName,"width="+w+",height="+h+",top="+mth+",left="+mtw+",status=no,toolbar=no,scrollbars="+scr+",resizable=no,menubar=no");
	popup.document.writeln('<html><head><title>Механизм действия Антабуса</title></head><body style="margin: 0px 0px 0px 0px" oncontextmenu="return false"><a href="javascript: self.close()" tytle="test"><img src='+pic+' border=0 width='+w+' height='+h+' alt="'+alt+' - нажмите на картинку, чтобы закрыть окно"></a></body></html>');
	popup.focus();
}
function externalLinks() { 
	if (!document.getElementsByTagName) return; 
	var anchors = document.getElementsByTagName("a"); 
	for (var i=0; i<anchors.length; i++) { 
		var anchor = anchors[i]; 
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") anchor.target = "_blank";
	} 
} 
window.onload = externalLinks;
