function mails(face,vardas,domain2level,domain1level,subj){
var full=vardas + "@" + domain2level + "." + domain1level;
if(subj==null){ document.write('<a href="mailto:' + full + '">' + face + '</a>'); }
else{ document.write('<a href="mailto:' + full + '?subject=' + subj + '">' + face + '</a>'); }
}

function mails2(vardas,domain2level,domain1level){
	var full=vardas + "@" + domain2level + "." + domain1level;
	var naujas=window.open('','sum','width=200,height=100,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=50,top=50');
	naujas.document.writeln('<HTML><HEAD><TITLE>sum.lt</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"></HEAD>');
	naujas.document.writeln('<BODY style="background : white; font: 14px Arial, \'sans-serif\'; text-align : center; margin-top: 40px;"><a href="mailto:' + full + '">' + full + '</a></BODY></HTML>');
	naujas.document.writeln('<script type="text/javascript">window.setTimeout("window.close()", 7000);</script>');
	naujas.document.close();
	naujas.focus();
}

function showImage(img,w,h) {
	w=w+20;
	h=h+20;
	var naujas=window.open(img,'sum','width='+w+',height='+h+',scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no,left=50,top=50');
	naujas.focus();
}

if (top.location != location) {
top.location.href = document.location.href;
}

