// JavaScript Document

function validatemessage() 
{ 
valid3=1;
     if ( document.myform.message.value.length < 10 ) 
   { 	valid3=0;
document.myform.message.value = prompt('Please insert a valid message.',document.myform.message.value);
   }; 
    if (document.myform.message.value.length<10 ) 
   { 	valid3=0;
   }; 
};
function validateyourname() 
{ 
valid2=1; 
     if ( document.myform.yourname.value.length < 5 ) 
   { 	valid2=0;
document.myform.yourname.value = prompt('Please insert a valid name.',document.myform.yourname.value);
   }; 
    if (document.myform.yourname.value.length<5 ) 
   { 	valid2=0;
   }; 
};
function validatemail() 
{ 
valid1=1;
     if (document.myform.yourmail.value.length<5 ) 
	
   { 
		valid1=0;
document.myform.yourmail.value = prompt('Please insert a valid mail address like : yourname@yourhost.com',document.myform.yourmail.value);

   }; 
  if (document.myform.yourmail.value.length<5 ) 
   { 
	valid1=0;
   }; 
};

   function senda()
   {
   if ((valid1==1) && (valid2==1) && (valid3==1)) {
   document.myform.submit();};
   };     


function switchImage(imgName, imgSrc) 
{
  if (document.images)
  {
    if (imgSrc != "none")
    {
      document.images[imgName].src = imgSrc;
    }
  }
}

function win(popurl)
{var winpops=window.open(popurl,'','width=440,height=150,status'); }




