function CheckForm()
{
document.FB.Lxone.value = navigator.appName + ", " + navigator.userAgent;
document.FB.Lxtwo.value = screen.width + "*" + screen.height;
if (navigator.appName == "Netscape")
{
  document.FB.Lxtwo.value += "*" + window.outerWidth + "*" + window.outerHeight;
}
var Email = document.FB.Email.value;
var ErrNr = 0;
var ErrMsg = new Array("",
"The message body is empty.",
"Please enter your email address.",
"Sorry, this does not look like a valid email address.",
"Please enter your name.");

if(document.FB.Name.value.length<2
|| document.FB.Name.value=="Your name")
{
  document.FB.Name.focus();
  document.FB.Name.style.backgroundColor = "#ffd0d3";
  ErrNr = 4;
}
else { document.FB.Name.style.backgroundColor = "#cee6ff"; }

if(Email.indexOf('@')<1
|| Email.indexOf('.')<1
|| Email.length<7
|| Email.indexOf('@.')>=0
|| Email.indexOf('.@')>=0)
{
  document.FB.Email.focus();
  document.FB.Email.style.backgroundColor = "#ffd0d3";
  ErrNr = 3;
}
else { document.FB.Email.style.backgroundColor = "#cee6ff"; }

if(Email == ''
|| Email == 'Your email address')
{
  document.FB.Email.focus();
  document.FB.Email.style.backgroundColor = "#ffd0d3";
  ErrNr = 2;
}
else { document.FB.Email.style.backgroundColor = "#cee6ff"; }

if(document.FB.Message.value==''
|| document.FB.Message.value=='Message')
{
  document.FB.Message.focus();
  document.FB.Message.style.backgroundColor = "#ffd0d3";
  ErrNr = 1;
}
else { document.FB.Message.style.backgroundColor = "#cee6ff"; }

if(ErrNr>0)
{
  if(ErrNr==3)
  {
    alert("Sorry,\n\""+ Email +"\" does not look like a valid email address.");
  }
  else { alert(ErrMsg[ErrNr]); }
  return false;
}

}

function Uncolor()
{
  document.FB.Email.style.backgroundColor = "#ffffff";
  document.FB.Name.style.backgroundColor = "#ffffff";
  document.FB.Subject.style.backgroundColor = "#ffffff";
  document.FB.Message.style.backgroundColor = "#ffffff";
}

function MediaForm()
{
var MEmail = document.MediaList.Email.value;
if(MEmail == ''
|| MEmail == 'Email address')
{
  document.MediaList.Email.focus();
  document.MediaList.Email.style.backgroundColor = "#ffd0d3";
  alert("Please enter your email address.");
  return false;
}
if(MEmail == 'Ihre Emailadresse')
{
  document.MediaList.Email.focus();
  document.MediaList.Email.style.backgroundColor = "#ffd0d3";
  alert("Bitte geben Sie Ihre Emailadresse ein.");
  return false;
}
if(MEmail.indexOf('@')<1
|| MEmail.indexOf('.')<1
|| MEmail.length<7
|| MEmail.indexOf('@.')>=0
|| MEmail.indexOf('.@')>=0)
{
  document.MediaList.Email.focus();
  document.MediaList.Email.style.backgroundColor = "#ffd0d3";
  alert("Sorry,\n\""+ MEmail +"\" does not look like a valid email address.");
  return false;
}
document.MediaList.Lxone.value = navigator.appName + ", " + navigator.userAgent;
document.MediaList.Lxtwo.value = screen.width + "*" + screen.height;
if (navigator.appName == "Netscape")
{
  document.MediaList.Lxtwo.value += "*" + window.outerWidth + "*" + window.outerHeight;
}
}

