function addfav()
   {
   if (document.all)
      {
      window.external.AddFavorite
      ("http://www.optimizare-site.com","Articole optmizare web - SEO")
      }
   }

   function foo() {
    window.open("http://www.optimizare-site.com/poll/results.php",null,
    "height=150,width=300,status=yes,toolbar=no,menubar=no,location=no");
}
function validateEmail(obj) 
	{ 
	
		var bVali = true;	
	
		if (obj.value != "") {
	
			aMail = obj.value.split("@")
			if (aMail.length != 2) {
				bVali = false;
			} else {
				usuaExp = /[a-z_0-9\.]/;
				if (!usuaExp.test(aMail[0])) {
					bVali = false;
				} else {
					aHost = aMail[1].split(".");
					if (aHost.length < 2) {
						bVali = false;
					}
				}
	
			}
	
		}
	
		if (!bVali) {
			alert("Introduceti o adresa de mail valida");
			obj.focus();	
		}
	}

function vote()
{
// set var radio_choice to false
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < vot.answer.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (vot.answer[counter].checked)
radio_choice = true; 
}

if (!radio_choice)
{
// If there were no selections made display an alert box 
alert('Trebuie sa alegeti cel putin o optiune inainte de a vota');
return (false);
}
return (true);
}