function absPosition(obj) { 
      var x = y = 0;
      while(obj) {
            x += obj.offsetLeft;
            y += obj.offsetTop;
            obj = obj.offsetParent;
      }
      return {x:x, y:y};
}

function ow(url){
	w=window.open(url, "1", "top=0,left=0,toolbar=no,scrollbars=yes,resizable=yes,width=480, height=230");
}
function SendMail(nick, host) {
	window.open('mailto:'+nick+'@'+host);
	return false;
}

//absPosition(document.getElementById(\'avto'.$res[$i][0]['id'].'\')).x,
//					absPosition(document.getElementById(\'avto'.$res[$i][0]['id'].'\')).y
//function qwe(){
//	alert(absPosition(document.getElementById('picture')).x+' '+absPosition(document.getElementById('picture')).y);
//}
