function epost(name,domain) {
   window.location ='mailto:'+ name + '@' + domain;
   return true;
}
function epost_show(name,domain) {
   document.print( name + '@' + domain );
   return true;
}

function avaaken(link, aknanimi,x, y) {
  editWin = window.open(link, aknanimi,'width='+x+',height='+y+',toolbar=0,directories=0,menubar=0,status=0,resizable=1,location=0,scrollbars=1,copyhistory=0,screenX=50,screenY=25,left=50,top=25');
  editWin.focus();
}

// get checkbox value. returns first checked value
function GetCheckValue(Rbutton) {
	if(!Rbutton.length && Rbutton.checked) return Rbutton.value;
	else if(!Rbutton.length) return false;

	for(var i=0; i < Rbutton.length; i++) {
		if(Rbutton[i].checked) return Rbutton[i].value;
	}
	return false;
}

// Is it an e-mail?
function is_email(email)
{
   var result = false;
   var the_email = new String(email);
   var at_pos = the_email.indexOf("@");
   if (at_pos > 0){
      var dot_pos = the_email.indexOf(".",at_pos);
      if ( (the_email.length > dot_pos + 1) && (dot_pos > at_pos + 1) )
         result = true;
   }
   return result;
}//is_email
