/* author: Agency Mariage */
/* Generated by AceHTML Freeware http://freeware.acehtml.com */
/* Creation date: 6/21/02 */

function noEntry() {
mE=document.form.E_mail.value;
mF=document.form.first.value;
mP=document.form.password.value;
mR=document.form.repeat.value;
if ((mE.length<1)||(mE.indexOf("*")!=-1)) {
alert("Your E_mail is requred !\nВашият E_mail се изисква !");
document.form.E_mail.value="** Fill / Попълнете";
document.form.E_mail.focus();
document.form.E_mail.select();
return false;
	}
	if ((mE.length<7)||(mE.indexOf("@")==-1)||(mE.indexOf(".")==-1)||(mE.indexOf(" ")!=-1)) {
	alert("This is not a valid E_mail address !.\nТова не е валиден E-mail адрес !");
	document.form.E_mail.focus();
	return false;
	  }
	  
	  else if ((mE.indexOf("@aol")!=-1)||(mE.indexOf("@hotmail")!=-1)||(mE.indexOf("@gmail")!=-1)||(mE.indexOf("@msn")!=-1)||(mE.indexOf("@verizon.net")!=-1)||(mE.indexOf("@earthlink")!=-1)||(mE.indexOf("@netscape")!=-1)||(mE.indexOf("@mail.bg")!=-1)||(mE.indexOf("@o2.nl")!=-1)||(mE.indexOf("@rambler.ru")!=-1)||(mE.indexOf("@bellsouth.net")!=-1)||(mE.indexOf("@excite.com")!=-1)||(mE.indexOf("@gmx.de")!=-1)||(mE.indexOf("@transunion.com")!=-1)||(mE.indexOf("@fastermail.com")!=-1)||(mE.indexOf("@ofir.dk")!=-1)||(mE.indexOf("@rediffmail.com")!=-1)||(mE.indexOf("@iname.com")!=-1)||(mE.indexOf("@mail.com")!=-1)||(mE.indexOf("@biz.by")!=-1)||(mE.indexOf("@clearwire.net")!=-1)) {
	alert("Your E_mail provider does not suppor HTML messages.\nPlease enter another E_mail address from different provider.\nWe recommend Yahoo.com");
	document.form.E_mail.focus();
	return false;
	}
	  
	  else if ((mF.length<2)) {
	  alert("At least your first name is needed !.\nНужно е поне малкото Ви име !");
	  document.form.first.value="***";
	  document.form.first.focus();
	  document.form.first.select();
	  return false;
	    }
		else if ((mP.length<3)) {
	    alert("At least 3 chars for your pass needed !.\nНужни са поне 3 знака за парола !");
	    document.form.password.value="***";
	    document.form.password.focus();
	    document.form.password.select();
	    return false;
	      }
		  else if ((mP!=mR)) {
	      alert("You have typed two defferent passwords ! !.\nНаписахте две различни пароли !");
	      document.form.password.focus();
	      document.form.password.select();
		  return false;
	        }
	      else  return true;
}








function checkDoubleE_mail() {
mE=document.form.E_mail.value;
mS=document.form.from.value;
if ((mE.length<1)||(mE.indexOf("*")!=-1)) {
alert("The entry must be completed (E_mail).\nПолето трябва да се попълни (E_mail)!");
document.form.E_mail.value="** Fill / Попълнете";
document.form.E_mail.focus();
document.form.E_mail.select();
return false;
	}
	else if ((mE.length<7)||(mE.indexOf("@")==-1)||(mE.indexOf(".")==-1)||(mE.indexOf(" ")!=-1)) {
	alert("This is not a valid E_mail address!.\nТрябва да напишете валиден E-mail!");
	document.form.E_mail.focus();
	return false;
	}
	
	else if((mS.length<1)||(mS.indexOf("*")!=-1)) {
alert("The entry must be completed (E_mail).\nПолето трябва да се попълни (E_mail)!");
document.form.from.value="** Fill / Попълнете";
document.form.from.focus();
document.form.from.select();
return false;
	}
	else if ((mS.length<7)||(mS.indexOf("@")==-1)||(mS.indexOf(".")==-1)||(mS.indexOf(" ")!=-1)) {
	alert("This is not a valid E_mail address!.\nТрябва да напишете валиден E-mail!");
	document.form.from.focus();
	
	return false;
	}
	else  return true;
}



function noMessage() {
mt=document.form.message.value;
if ((mt.length<2)) {
alert("You have to write at least one word !?.\nТрябва да напишете поне една дума !?");
document.form.message.value="*";
document.form.message.focus();
return false;
}
else  return true;
}


function noUpload() {

Pic=document.uplo.jpgimage.value;
if ((Pic.indexOf(".jpg")!=-1)||(Pic.indexOf(".gif")!=-1)||(Pic.indexOf(".JPG")!=-1)||(Pic.indexOf(".GIF")!=-1)) {
	return true;
	
	}else{
	alert("Съжалявам, тука може да се записват само снимки във формат jpg или gif !\r Sorry only jpg or gif formats accepted !!");
	return false;
	}	
}




function checkE_mail() {
mE=document.form.E_mail.value;
if ((mE.length<1)||(mE.indexOf("*")!=-1)) {
alert("The entry must be completed (E_mail).\nПолето трябва да се попълни (E_mail)!");
document.form.E_mail.value="** Fill / Попълнете";
document.form.E_mail.focus();
document.form.E_mail.select();
return false;
	}
	if ((mE.length<7)||(mE.indexOf("@")==-1)||(mE.indexOf(".")==-1)||(mE.indexOf(" ")!=-1)) {
	alert("This is not a valid E_mail address!.\nТрябва да напишете валиден E-mail!");
	document.form.E_mail.focus();
	return false;
	}
	else  return true;
}



function checkE_mail_quick() {
mE=document.form.from.value;
mP=document.form.password.value;
mR=document.form.repeat.value;
if ((mE.length<1)||(mE.indexOf("*")!=-1)) {
alert("The entry must be completed (E_mail).\nПолето трябва да се попълни (E_mail)!");
document.form.from.value="** Fill / Попълнете";
document.form.from.focus();
document.form.from.select();
return false;
	}
	if ((mE.length<7)||(mE.indexOf("@")==-1)||(mE.indexOf(".")==-1)||(mE.indexOf(" ")!=-1)||(mE.indexOf(",")!=-1)) {
	alert("This is not a valid E_mail address!.\nТрябва да напишете валиден E-mail!");
	document.form.from.focus();
	return false;
	}
			else if ((mE.indexOf("@aol")!=-1)||(mE.indexOf("@hotmail")!=-1)||(mE.indexOf("@gmail")!=-1)||(mE.indexOf("@msn")!=-1)||(mE.indexOf("@verizon.net")!=-1)||(mE.indexOf("@earthlink")!=-1)||(mE.indexOf("@netscape")!=-1)||(mE.indexOf("@mail.bg")!=-1)||(mE.indexOf("@o2.nl")!=-1)||(mE.indexOf("@rambler.ru")!=-1)||(mE.indexOf("@bellsouth.net")!=-1)||(mE.indexOf("@excite.com")!=-1)||(mE.indexOf("@gmx.de")!=-1)||(mE.indexOf("@transunion.com")!=-1)||(mE.indexOf("@fastermail.com")!=-1)||(mE.indexOf("@ofir.dk")!=-1)||(mE.indexOf("@rediffmail.com")!=-1)||(mE.indexOf("@iname.com")!=-1)||(mE.indexOf("@mail.com")!=-1)||(mE.indexOf("@biz.by")!=-1)||(mE.indexOf("@clearwire.net")!=-1)) {
	alert("Your E_mail provider does not suppor HTML messages.\nPlease enter another E_mail address from different provider.\nWe recommend Yahoo.com");
	document.form.from.focus();
	return false;
	
	}else if ((mP.length<3)) {
	    alert("At least 3 chars for your pass needed !.\nНужни са поне 3 знака за парола !");
	    document.form.password.value="***";
	    document.form.password.focus();
	    document.form.password.select();
	    return false;
	      }else if ((mP!=mR)) {
	      alert("You have typed two defferent passwords ! !.\nНаписахте две различни пароли !");
	      document.form.password.focus();
	      document.form.password.select();
		  return false;
	        
	}
	
	return true;
}



function aol() {
mE=document.form.E_mail.value;
if ((mE.length<7)||(mE.indexOf("@")==-1)||(mE.indexOf(".")==-1)||(mE.indexOf(" ")!=-1)) {
	alert("This is not a valid E_mail address!");
	document.form.E_mail.focus();
	return false;
	}
	if ((mE.indexOf("@aol")!=-1)||(mE.indexOf("@msn")!=-1)||(mE.indexOf("@earthlink")!=-1)||(mE.indexOf("@netscape")!=-1)||(mE.indexOf("@mail.bg")!=-1)||(mE.indexOf("@o2.nl")!=-1)||(mE.indexOf("@rambler.ru")!=-1)||(mE.indexOf("@bellsouth.net")!=-1)||(mE.indexOf("@excite.com")!=-1)||(mE.indexOf("@gmx.de")!=-1)||(mE.indexOf("@transunion.com")!=-1)) {
	alert("Your E_mail provider does not suppor HTML messages.\nPlease enter another E_mail address from different provider.\nWe recommend Yahoo.com");
	document.form.E_mail.focus();
	return false;
	}
else  return true;

}





/* http://www.LUVCOM.com Start protect - Does not allow the right mouse button to be used
Не разрешава да се използува десен бутон и да се запише снимка*/
function protect(evt) 
{
  if (navigator.appName != 'Microsoft Internet Explorer')
  {
    if (evt.which != 3) 
      return true;
  };
  alert("You have no rights to copy images from this site.\n\nНямате права да копирате снимки от този сайт.");
  return false;
}


function trap() 
{
  if(document.images)
  {
    if(navigator.appName != 'Microsoft Internet Explorer')
    {
      for(i=0;i<document.images.length;i++)
        document.images[i].onmousedown = protect;
    }
    else
    {
      for(i=0;i<document.images.length;i++)
        document.images[i].oncontextmenu = protect;
    }
  }
}

// End protect
