<!--



<!--JavaScript: Netscape Fix-->
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);



<!--JavaScript: Image Rollover-->
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}



<!--JavaScript: Pop-Up Windows-->
function emailthisarticle() {
  popupWin = window.open('http://www.avantmarketer.com/emailthisarticle.htm',"www","scrollbars=no,width=449,height=435,left=150,top=25")

}
<!--JavaScript: Pop-Up Windows-->
function emailthisarticle(pageUrl) {
 var x = pageUrl;
  newUrl = 'http://www.avantmarketer.com/emailthisarticle.php' + '?url=' + x;
  popupWin = window.open(newUrl,"www","scrollbars=no,width=449,height=435,left=150,top=25")

}
function sendinput() {
  popupWin = window.open('http://www.avantmarketer.com/sendinput.htm',"remote","scrollbars=no,width=449,height=435,left=150,top=25")

}


<!--JavaScript: Jump Menu-->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  if (selObj.options[selObj.selectedIndex].value!="")
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



<!--JavaScript: Validate Subscription Form-->
function validate(form) {
    var fname = form.fname;
    var lname = form.lname;
    var email = form.email;
    var occupation = form.occupation;
    var company = form.company;

    
    if (!fname.value) {
            alert("Please enter your First Name.");
            fname.focus();
            fname.select();
            return false;

    }	
    if (!lname.value) {
            alert("Please enter your Last Name.");
            lname.focus();
            lname.select();
            return false;

    }


    if (occupation.options[occupation.selectedIndex].value == 'INVALID') {
            alert("Please select your Occupation.");
            return false;
    }


    if (!company.value) {
            alert("Please enter your Company.");
            company.focus();
            company.select();
            return false;

    }

    
	if (!email.value) {
            alert("Please enter your Email address.");
            email.focus();
            email.select();
            return false;
    }   

    if (!emailCheck(email.value)) {
            email.focus();
            email.select();
            return false;
    }

	newurl = 
		"informcolleagues.php" + '?first=' +
		fname.value + '&last=' +
		lname.value + '&email=' +
		email.value; 

popupWin =
window.open(newurl,"remote","scrollbars=no,width=449,height=435,left=150,top=25")

    return true;

}


function emailCheck (emailStr) {
        var emailPat=/^(.+)@(.+)$/
        var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
        var validChars="\[^\\s" + specialChars + "\]"
        var quotedUser="(\"[^\"]*\")" 
        var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
        var atom=validChars + '+'
        var word="(" + atom + "|" + quotedUser + ")"
        var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
        var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")
        var matchArray=emailStr.match(emailPat)
        if (matchArray==null) {
                        alert("Your Email address doesn't seem to be valid.")
                        emailVal = "false";
                        return false;
        }
        var user=matchArray[1]
        var domain=matchArray[2]

        // See if "user" is valid
        if (user.match(userPat)==null) {
                alert("Your Email address doesn't seem to be valid.")
                emailVal = "false";
                        return false;
        }

        var IPArray=domain.match(ipDomainPat)
        if (IPArray!=null) {
        // this is an IP address
                for (var i=1;i<=4;i++) {
            if (IPArray[i]>255) {
                alert("Your Email address doesn't seem to be valid.")
                        emailVal = "false";
                        return false;
            }
        }
        return true
        }

        // Domain is symbolic name
        var domainArray=domain.match(domainPat)
        if (domainArray==null) {
                alert("Your Email address doesn't seem to be valid.")
                emailVal = "false";
                return false;
        }

        var atomPat=new RegExp(atom,"g")
        var domArr=domain.match(atomPat)
        var len=domArr.length
        if (domArr[domArr.length-1].length<2 ||
                domArr[domArr.length-1].length>3) {
           // the address must end in a two letter or three letter word.
           alert("Your Email address doesn't seem to be valid.")
                emailVal = "false";
                return false;
        }

        // Make sure there's a host name preceding the domain.
        if (len<2) {
                var errStr="Your Email address doesn't seem to be valid."
                alert(errStr)
                emailVal = "false";
                return false;
        }

        // If we've gotten this far, everything's valid!
        emailVal = "true";
        return true;
}



<!--JavaScript: WebTrends Live-->
<!--
// Modification of this code is not allowed and will permanently disable your account!
// SiteName:  avant|marketer
function wtl_Tag5_114753()
{
	var SERVER= "";
	var CONTENTGROUP= "";
	
	var wtl_URL= document.URL;
	var wtl_Title= document.title;

	function D8( d)
	{
		var fwd=1, seed= new Date('01/01/2000'), key= "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
		var s= key.charAt( d.getFullYear()-2000)+key.charAt( d.getMonth()+1)+key.charAt( d.getDate());
		s+= key.charAt( d.getHours())+key.charAt( d.getMinutes())+key.charAt( d.getSeconds());
		while( seed.getDay()!=fwd) seed= new Date(seed.getTime() + 86400000);
		var w= Math.floor( (d.getTime()-(seed.getTime()+86400000)) / 604800000 );
		s+= key.charAt( (w-(w%16))/16 );
		s+= key.charAt( w%16);
		return s;
	}
	
	function A( B, C)
	{
		W+="&"+B+"="+escape(C);
	}

	var t = new Date();
	var W="http"+(document.URL.indexOf('https:')==0?'s':'')+"://statse.webtrendslive.com/S114753/button5.asp?tagver=5&si=114753&fw=1";
	A( "server", typeof(SERVER)== "string" ? SERVER : "");
	A( "Group", typeof(CONTENTGROUP)== "string" ? CONTENTGROUP : "");
	A( "tz", t.getTimezoneOffset());
	A( "ch", t.getHours());
	A( "cl", D8(t));
	A( "ti", typeof(wtl_Title)== "string" ? wtl_Title : document.title);
	A( "url", typeof(wtl_URL)== "string" ? wtl_URL : document.URL);
	A( "rf", window.document.referrer);
	A( "js", "Yes");
	A( "ul", navigator.appName=="Netscape" ? navigator.language : navigator.userLanguage);
	if(typeof(screen)=="object")
	{
	A( "sr", screen.width+"x"+screen.height);
	A( "cd", screen.colorDepth);
	A( "jo", navigator.javaEnabled()?"Yes":"No");
	}
	if( W.length>2048 && navigator.userAgent.indexOf('MSIE')>=0)
		W= W.substring( 0, 2043)+"&tu=1";

	document.write('<IMG ID="WTL_TAG" BORDER="0" WIDTH="1" HEIGHT="1" SRC="'+W+'">');
}



<!--JavaScript: Subscription Pop-Up Window-->
//
//  Cookie Functions -- "Night of the Living Cookie" Version (25-Jul-96)

function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function FixCookieDate (date) {
  var base = new Date(0);
  var skew = base.getTime(); // dawn of (Unix) time - should be 0
  if (skew > 0)  // Except on the Mac - ahead of its time
    date.setTime (date.getTime() - skew);
}

function GetCookie (name) {
  var arg = name + "=";
  var alen = arg.length;
  var clen = document.cookie.length;
  var i = 0;
  while (i < clen) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg)
      return getCookieVal (j);
    i = document.cookie.indexOf(" ", i) + 1;
    if (i == 0) break; 
  }
  return null;
}

function SetCookie (name,value,expires,path,domain,secure) {
  document.cookie = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : "");
}


function DeleteCookie (name,path,domain) {
  if (GetCookie(name)) {
    document.cookie = name + "=" +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}


function prevent_future(val)
	{
	var exp = new Date(); 
	exp.setTime(exp.getTime() + (30*24*60*60*1000));
	SetCookie("prevent_popup", val, exp, "/");
	}


function setpopup_cookie(val)
	{
	SetCookie("show_popup", val, null, "/");
	}
	

function cookie_popup()
	{
	val = GetCookie('show_popup');
	val_prevent = GetCookie('prevent_popup');
	if (val_prevent != 1) 
		{
		if (val == 1)
			{
			popup_signup('http://www.avantmarketer.com/subscribe.htm');
			}
		}
	}	

	
function popup_signup(page) 
		{
		OpenWin = this.open(page, "CtrlWindow", "height=435,width=449,left=150,top=25,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
		}

//-->