browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

condition = !(( (browserName.indexOf("Explorer") >=0 ) && (browserVer < 4) ) ||  ((browserName.indexOf("Netscape") >=0 ) && (browserVer < 2) ) ) ; 

if (condition == true  )
    CanAnimate = true;
else
    CanAnimate = false;

function openchild(thisurl){
if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,top=150,left=350,width=340,height=400');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,top=150,left=350,width=340,height=400');
}       

}

function openchild1(thisurl){
if ( CanAnimate ){ 
        msgWindow=window.open( '' ,'subwindow','toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,top=150,left=350,width=840,height=600');
        msgWindow.focus();
        msgWindow.location.href = thisurl;
}
else {
        msgWindow=window.open( thisurl,'subwindow','toolbar=no,location=no,directories=no,status=no,scrollbars=no,menubar=no,resizable=yes,top=150,left=350,width=260,height=320');
}       

}

function FrontPage_Form1_Validator(theForm)
{

  if (theForm.realname.value == "")
  {
    alert("Please enter a value for the \"realname\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.realname.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"realname\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.realname.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"realname\" field.");
    theForm.realname.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.company.value == "")
  {
    alert("Please enter a value for the \"company\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.company.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"company\" field.");
    theForm.company.focus();
    return (false);
  }

  if (theForm.position.value == "")
  {
    alert("Please enter a value for the \"position\" field.");
    theForm.position.focus();
    return (false);
  }

  if (theForm.position.value.length > 35)
  {
    alert("Please enter at most 35 characters in the \"position\" field.");
    theForm.position.focus();
    return (false);
  }

  if (theForm.contact.value == "")
  {
    alert("Please enter a value for the \"contact\" field.");
    theForm.contact.focus();
    return (false);
  }

  if (theForm.contact.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"contact\" field.");
    theForm.contact.focus();
    return (false);
  }
  return (true);
}

