function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
}

function echeck(str) {
		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		var bun=true; 
		
		if (str.indexOf(at)==-1){ bun=false }
		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){  bun=false	}
		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){  bun=false }
		if (str.indexOf(at,(lat+1))!=-1){ bun=false }
		if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){bun=false }
		if (str.indexOf(dot,(lat+2))==-1){  bun=false }
		if (str.indexOf(" ")!=-1){ bun=false }
 		return bun					
	}

function verificare_form(_f){
	         var eroare="";
			 if(_f.area_mesaj.value==""){
	          eroare="ATENTIE: Campul MESAJ nu a fost completat !"
	          _f.area_mesaj.focus();
	         }
	         
	         if(_f.area_mail.value=="") {
	          eroare="ATENTIE: Campul MAIL nu a fost completat !"
	          _f.area_mail.focus();
	         }
	         
	         var emailID=_f.area_mail;
	         if (echeck(emailID.value)==false) eroare="ATENTIE: Campul MAIL nu a fost completat corect!"
	         
	         if(_f.area_nume.value=="") {
	          eroare="ATENTIE: Campul NUME nu a fost completat !"
	          _f.area_nume.focus();
	         }
	         
	         if(eroare=="") return true
	         else{
	              alert(eroare); return false
	         }
}
	
function verificare_form_poveste(_f){
	         var eroare="";
			 if(_f.area_poveste.value==""){
	          eroare="ATENTIE: Campul POVESTE nu a fost completat !"
	          _f.area_poveste.focus();
	         }
	         
	         if(_f.area_titlu.value==""){
	          eroare="ATENTIE: Campul TITLU nu a fost completat !"
	          _f.area_titlu.focus();
	         }
	         
	         if(_f.area_mail.value=="") {
	          eroare="ATENTIE: Campul MAIL nu a fost completat !"
	          _f.area_mail.focus();
	         }
	         
	         var emailID=_f.area_mail;
	         if (echeck(emailID.value)==false) eroare="ATENTIE: Campul MAIL nu a fost completat corect!"
	         
	         if(_f.area_nume.value=="") {
	          eroare="ATENTIE: Campul NUME nu a fost completat !"
	          _f.area_nume.focus();
	         }
	         
	         if(eroare=="") return true
	         else{
	              alert(eroare); return false
	         }
}
	
function verificare_form_parere(_f){
	         var eroare="";
	
			 if(_f.area_parere.value==""){
	          eroare="ATENTIE: Campul PAREREA TA nu a fost completat !"
	          _f.area_parere.focus();
	         }
	         
	         if(_f.area_mail.value=="") {
	          eroare="ATENTIE: Campul MAIL nu a fost completat !"
	          _f.area_mail.focus();
	         }
	         
	         var emailID=_f.area_mail;
	         if (echeck(emailID.value)==false) eroare="ATENTIE: Campul MAIL nu a fost completat corect!"
	         
	         if(_f.area_nume.value=="") {
	          eroare="ATENTIE: Campul NUME nu a fost completat !"
	          _f.area_nume.focus();
	         }
	         
	         
	         if(eroare=="") return true
	         else{
	              alert(eroare); return false
	         }
}
//*******************88 ENGLEZA
function verificare_form_en(_f){
	         var eroare="";
			 if(_f.area_mesaj.value==""){
	          eroare="ATTENTION: Fill in field MESSAGE !"
	          _f.area_mesaj.focus();
	         }
	         
	         if(_f.area_mail.value=="") {
	          eroare="ATTENTION: Fill in field MAIL !"
	          _f.area_mail.focus();
	         }
	         
	         var emailID=_f.area_mail;
	         if (echeck(emailID.value)==false) eroare="ATTENTION: Inccorect  MAIL !"
	         
	         if(_f.area_nume.value=="") {
	          eroare="ATTENTION: Fill in field NAME !"
	          _f.area_nume.focus();
	         }
	         
	         if(eroare=="") return true
	         else{
	              alert(eroare); return false
	         }
}
	
function verificare_form_poveste_en(_f){
	         var eroare="";
			 if(_f.area_poveste.value==""){
	          eroare="ATTENTION: Fill in field YOUR STORY !"
	          _f.area_poveste.focus();
	         }
	         
	         if(_f.area_titlu.value==""){
	          eroare="ATTENTION: Fill in field TITLE !"
	          _f.area_titlu.focus();
	         }
	         
	         if(_f.area_mail.value=="") {
	          eroare="ATTENTION: Fill in field MAIL  !"
	          _f.area_mail.focus();
	         }
	         
	         var emailID=_f.area_mail;
	         if (echeck(emailID.value)==false) eroare="ATTENTION: Inccorect  MAIL!"
	         
	         if(_f.area_nume.value=="") {
	          eroare="ATTENTION: Fill in field NAME  !"
	          _f.area_nume.focus();
	         }
	         
	         if(eroare=="") return true
	         else{
	              alert(eroare); return false
	         }
}
	
function verificare_form_parere_en(_f){
	         var eroare="";
	
			 if(_f.area_parere.value==""){
	          eroare="ATTENTION: Fill in field YOUR OPPINION  !"
	          _f.area_parere.focus();
	         }
	         
	         if(_f.area_mail.value=="") {
	          eroare="ATTENTION: Fill in field MAIL  !"
	          _f.area_mail.focus();
	         }
	         
	         var emailID=_f.area_mail;
	         if (echeck(emailID.value)==false) eroare="ATTENTION: Inccorect MAIL !"
	         
	         if(_f.area_nume.value=="") {
	          eroare="ATTENTION: Fill in field NAME  !"
	          _f.area_nume.focus();
	         }
	         
	         
	         if(eroare=="") return true
	         else{
	              alert(eroare); return false
	         }
}
