function optinCheck()
{

if (document.form.l_first_name.value == "")
  {
  alert("Please enter your First Name.");
  document.form.l_first_name.focus();
  return false;
  }
if (document.form.l_last_name.value == "")
  {
  alert("Please enter your Last Name.");
  document.form.l_last_name.focus();
  return false;
  }
if (!document.form.l_email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your E-Mail Address or the\nE-Mail Address you entered appears to be invalid.\n\nPlease verify your entry and re-submit the form.");
 document.form.l_email.focus();
	return false;
	}
}

function contactformCheck()
{

if (document.form.Name.value == "")
  {
  alert("Please enter your First and Last Name.");
  document.form.Name.focus();
  return false;
  }
if (!document.form.Email.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.org)|(\.gov)|(\.mil)|(\.biz)|(\.us)|(\.cc)|(\.info)|(\.no)|(\.fr)|(\.be)|(\.jp)|(\.tv)|(\.ws)|(\.co)|(\.uk)|(\.ro)|(\.tc)|(\.dk)|(\.gs)|(\.kz)|(\.lt)|(\.it)|(\.ph)|(\.ca)|(\.za)|(\.nz)|(\.st)|(\.as)|(\.to)|(\.ws)|(\.de)|(\.fm)|(\.ac)|(\.vg)|(\.il)|(\.ky)|(\.ms)|(\.sh)|(\.name)|(\..{2,2}))$)\b/gi)){
	alert("Either you failed to enter your E-Mail address or the\naddress you supplied appears to be invalid.\n\nPlease verify your entry.");
 document.form.Email.focus();
	return false;
	}
if (document.form.Phone.value == "")
  {
  alert("Please enter your contact Phone Number.");
  document.form.Phone.focus();
  return false;
  }
if (document.form.Inquiry.value == "")
  {
  alert("Please enter your Inquiry.");
  document.form.Inquiry.focus();
  return false;
  }
}

var ie4=document.all;
var ns4=document.layers;
var ie5=navigator.appVersion;
if(ie4){
    if(ie5.indexOf("MSIE 5")<0){ // Remove for forms and embedded controls
        document.onmousedown=iecapture;
        document.onmouseup=iecapture;
        document.onclick=iecapture;
        document.ondblclick=iecapture;
    } // Remove for forms and embedded controls
}else if(ns4){
    window.captureEvents(Event.MOUSEDOWN)
    window.onmousedown=nscapture
}
function iecapture(){
    var el=event.srcElement;
    if(event.button==2){
        if((el.tagName!="INPUT")&&(el.tagName!="TEXTAREA")&&(el.tagName!="SELECT")&&(el.tagName!="OBJECT")&&(el.tagName!="EMBED")){
            alert('©1997-2008');
        }
    }
}
function nscapture(ev){
    if(ev.which!=1){
	alert('©1997-2008');	
        return false;
    }
}

function VersionNavigateur(Netscape, Explorer) {
  if ((navigator.appVersion.substring(0,3) >= Netscape && navigator.appName == 'Netscape') ||      
      (navigator.appVersion.substring(0,3) >= Explorer && navigator.appName.substring(0,9) == 'Microsoft'))
    return true;
else return false;
}

function restrict(){
  if(event.button==2)
   alert("©1997-2008");
 }
 document.onmousedown=restrict;
function newWindow(file,window) {
    msgWindow=open(file,window,'resizable=no, scrollbars=1, width=550, height=350, left=120,right=5');
    if (msgWindow.opener == null) msgWindow.opener = _MAIN;
}

function stat(txt) {
    window.status = txt;
	return true;
    } 

function mOvr(src,id) { 
if (!src.contains(event.fromElement)) {
document.all.primnav.rows(0).cells(id).bgColor = '#FACD45';
}
}
function mOut(src,id) { 
if (!src.contains(event.toElement)) {
document.all.primnav.rows(0).cells(id).bgColor = '#000066';
}
}