function twin(path,w,h) {
	newwin=window.open('','','width='+w+',height='+h);
	var tmp = newwin.document;
	tmp.write('<html><head><title>www.tegy.hu</title>');
	tmp.write('<style>body { margin: 0px; padding: 0px; background-image: url(\'http://www.tegy.hu/images/fu.PNG\'); }</style>');
	tmp.write('</head><body><table width="100%" height="100%"><tr><td width="100%" height="100%" valign="middle" style="text-align: center;">');
	tmp.write('<img src="'+path+'" />');
	tmp.write('</td></tr></table>');
	tmp.write('</body></html>');
	tmp.close();
}

function initer() {
	var y = document.getElementsByTagName('a');
    for (var i=0; i<y.length; i++) {
		var href = y[i].getAttribute('href');
		
		if (href.indexOf('http')==0 && href.indexOf('http://dev.webimpex')<0 && (href.indexOf('http://www.tegy.hu')<0 || href.indexOf('http://www.tegy.hu/old')==0)) {
			y[i].onclick = linkwin;
		}
	}
}


function linkwin() {
	var href = this.getAttribute('href');
	window.open(href,'','width=600,height=500,scrollbars=yes,resizable=yes');
	return false;
}
