function verify() {
yahoo = document.getElementById("yahoo").value;
verificare = document.getElementById("verificare").value;
sex = document.getElementById("sex");

if (yahoo == "") {
hideAllErrors();
document.getElementById("allError").style.display = "inline";
document.getElementById("yahoo").select();
document.getElementById("yahoo").focus();
return false;



} else if (verificare == "") {
hideAllErrors();
document.getElementById("allError").style.display = "inline";
document.getElementById("verificare").select();
document.getElementById("verificare").focus();
return false;

} else if (sex.selectedIndex== 0) {
hideAllErrors();
document.getElementById("allError").style.display = "inline";
document.getElementById("sex").focus();
return false;
}
return true;
}

function hideAllErrors() {
document.getElementById("allError").style.display = "none"
}

var swear_words_arr=new Array("pula","pizda","fut","anus","sug","curva","mortii","matii","tarfa","puula","anal","oral","futacioasa","fund","frec","coaie","www","http",".ro",".com",".net",".org","muie","mue","mu3","mata","pola","fuck","shit","prost","bou","handicapat","proasta","curva","kkt","penis","laba","masturb","pwla","poola","pola","cioc","iau la","tampit","ling","pizd","melu","panaram"); 
var swear_alert_arr=new Array(); 
var swear_alert_count=0; 

function reset_alert_count() 
{ 
swear_alert_count=0; 
} 

function wordFilter(form,fields) 
{ 
reset_alert_count(); 
var compare_text; 
var fieldErrArr=new Array(); 
var fieldErrIndex=0; 
for(var i=0; i<fields.length; i++) 
{ 
eval('compare_text=document.' + form + '.' + fields[i] + '.value;'); 
for(var j=0; j<swear_words_arr.length; j++) 
{ 
for(var k=0; k<(compare_text.length); k++) 
{ 
if(swear_words_arr[j]==compare_text.substring(k,(k+swear_words_arr[j].length)).toLowerCase()) 
{ 
swear_alert_arr[swear_alert_count]=compare_text.substring(k,(k+swear_words_arr[j].length)); 
swear_alert_count++; 
fieldErrArr[fieldErrIndex]=i; 
fieldErrIndex++; 
} 
} 
} 
} 
var alert_text=""; 
for(var k=1; k<=swear_alert_count; k++) 
{ 
alert_text+="\n" + "" + k + ". " + swear_alert_arr[k-1]; 
eval('compare_text=document.' + form + '.' + fields[fieldErrArr[0]] + '.focus();'); 
eval('compare_text=document.' + form + '.' + fields[fieldErrArr[0]] + '.select();'); 
} 
if(swear_alert_count>0) 
{ 
alert("Nu poti trimite acest ID pentru ca ai folosit in descriere cuvinte interzise.\n" + alert_text + " "); 
return false; 
} 
else 
{ 
return true; 
} 
} 


//bookmark
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}

function hide_div(even,id) {
if (even) document.getElementById(id).style.display = "inline";
else if (even) document.getElementById(id).style.display = "none";
} 

// hide error

function blockError(){return true;}
window.onerror = blockError;