      if(document.getElementById("viruslist")!=null){

	var counter=0;

  	var listEl = document.getElementById("viruslist");
  	var liEl = document.createElement("li");
  	var aEl = document.createElement("a");

  	liEl.appendChild(aEl);

  	//for(var i=0;i<tenalerts.length/3;i++){
	for(var i=0;i<tenalerts.length/6;i++){

    	  var clonedLi = liEl.cloneNode(true);
    	  var bEl = document.createElement("b");
    	  bEl.appendChild(document.createTextNode(tenalerts[0+3*i]));
    	  clonedLi.firstChild.appendChild(bEl);
    	  clonedLi.firstChild.appendChild(document.createTextNode(" "));
    	  clonedLi.firstChild.appendChild(document.createTextNode(tenalerts[1+3*i]));
    	  clonedLi.firstChild.setAttribute("href", (tenalerts[2+3*i]));
    	  clonedLi.firstChild.setAttribute("target", "extwin");
    	  listEl.appendChild(clonedLi);
	}
      }
      over = function() {
	  var ovEls = document.getElementById("secondLevelNav").getElementsByTagName("li");
	  for (var i=0; i<ovEls.length; i++) {
		ovEls[i].onmouseover=function() {
			this.className+=" over";
		}
		ovEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	  }
	}
	if (window.attachEvent && document.getElementById("secondLevelNav")!=null) {
	  window.attachEvent("onload", over);
	}

      function changeState(cEl){
          var els = document.getElementById("prod_desc").getElementsByTagName("li");
	  var closevar = (els[cEl].className=='openitem');
	  for(var i=0; i<els.length; i++){
	    els[i].className='';
	  }
	  if(!closevar) els[cEl].className='openitem';
      }

      var activeContactItem=0;
      function displayContactItem(itemIndex){
	var items = document.getElementById("contactItems").getElementsByTagName("li");
	items[activeContactItem].style.display='none';
	items[itemIndex].style.display='block';
	activeContactItem=itemIndex;
      }

      if(document.getElementById("productList")!=null) var fullProductList = document.getElementById("productList").getElementsByTagName("select")[0];
      if(document.getElementById("downloadType")!=null) var fullDownloadTypeList = document.getElementById("downloadType").getElementsByTagName("div")[0];

      var currentEvalLink='0';
      var currentUpgradeLink='0';
      var currentProduct=null;

      function changeProduct(downloadTypes){
	var oldList = document.getElementById("downloadType").getElementsByTagName("div")[0];
	var newList = fullDownloadTypeList.cloneNode(true);

	var evalButton = newList.getElementsByTagName("span")[0];
	var upgradeButton = newList.getElementsByTagName("span")[1];
	var cdButton = newList.getElementsByTagName("span")[2];

	//alert(downloadTypes[1]+', '+downloadTypes[2]+', '+downloadTypes[3]);

	if(downloadTypes[1]=='' || downloadTypes[1]==0) newList.removeChild(evalButton);
	if(downloadTypes[2]=='' || downloadTypes[2]==0) newList.removeChild(upgradeButton);
	if(downloadTypes[3]=='' || downloadTypes[3]==0) newList.removeChild(cdButton);

	currentEvalLink = downloadTypes[1];
	currentUpgradeLink = downloadTypes[2];
	
	document.getElementById("downloadType").replaceChild(newList, oldList);

	var radioArray = newList.getElementsByTagName("input");
	/*
	for(var i=0;i<radioArray.length;i++) {
	  alert(radioArray[i].getAttribute("checked"));
	}*/
	
	if(currentProduct.value!=-1) {
	  showProceed();
	  radioArray[0].setAttribute("checked", "checked");
	  /*alert(radioArray[0].getAttribute("checked"));*/
	  changeProceedLink(radioArray[0].value);
	}
	else {
	  hideProceed();
	}
      }

      function changeProductCategory(category){
	var oldList = document.getElementById("productList").getElementsByTagName("select")[0];
	if(category=='-1') {
	  swapLists(document.getElementById("productList"), oldList, fullProductList);
	  return;
	}
	var newList = fullProductList.cloneNode(true);
	var prodItems = newList.options;
	var inCat = false;
	for(i=prodItems.length-1;i>-1;i--){
	  var catArray=prodItems[i].value.split(";")[0].split(",");
	  inCat=false;
	  for(var j=0;j<catArray.length;j++){
	    if(catArray[j]==category) inCat=true;
	  }
	  if(!inCat) newList.removeChild(prodItems[i]);
	}
	newList.onchange=fullProductList.onchange;
	//Insert CHOOSE PRODUCT OPTION
	var chooseNode = fullProductList.getElementsByTagName("option")[0].cloneNode(true);
	newList.insertBefore(chooseNode, newList.firstChild);
	newList.selectedIndex=0;
	swapLists(document.getElementById("productList"), oldList, newList);
	
      }
      function swapLists(container, oldList, newList) {
	container.insertBefore(newList, oldList);
	container.removeChild(oldList);
      }
      function hideProceed() {
	document.getElementById("inputFields").style.display='none';
	document.getElementById("proceedButton").style.display='none';
      }
      function showProceed() {
	document.getElementById("inputFields").style.display='block';
	document.getElementById("proceedButton").style.display='inline';
      }
      function changeProceedLink(radioIndex) {
	var currentProductList = document.getElementById("productList").getElementsByTagName("select")[0];
	if(currentProductList.value==-1) {
	  alert('Please choose a product first');
	  return false;
	}
	if(radioIndex <= 1 && (currentEvalLink.length<=1 && currentUpgradeLink.length<=1)) {
	  alert('Not a valid choice, try reseting your selections');
	  return false;
	}
	var proceedButton = document.getElementById("proceedButton");
	if(radioIndex==0) {
	  hideform();
	  proceedButton.setAttribute("href", currentEvalLink);
	}
	else if(radioIndex==1) {
	  hideform();
 	  proceedButton.setAttribute("href", currentUpgradeLink);
	}
	else showform();
	return true;
      }

      if(document.getElementById("prodCatList")!=null) addOnChangeEventhandlers();

      function addOnChangeEventhandlers(){
	document.getElementById("prodCatList").getElementsByTagName("select")[0].onchange = function(e){
	  var target = detectTarget(e);
	  var category = target.options[target.selectedIndex].value;
	  changeProductCategory(category);
	}
	if(document.getElementById("downloadType")!=null) {
	  document.getElementById("productList").getElementsByTagName("select")[0].onchange = function(e){
	    var target = detectTarget(e);
	    var downloadTypes = target.options[target.selectedIndex].value.split(";");
	    currentProduct = target.options[target.selectedIndex];
	    document.getElementById("productname").value=currentProduct.firstChild.nodeValue;
	    changeProduct(downloadTypes);
	  }
	}
      }
      function showform() {
	document.getElementById("inputFields").style.display='block';
	document.getElementById("proceedButton").style.display='none';
      }
      function hideform() {
	document.getElementById("inputFields").style.display='none';
	document.getElementById("proceedButton").style.display='block';
      }

    function detectTarget(e){
      var targ;
      if (!e) var e=window.event;
      if (e.target){targ=e.target;}
      else if(e.srcElement){targ=e.srcElement;}
      if (targ.nodeType==3){targ=targ.parentNode;}
      return targ;
    }

    document.onclick = function(e) {
	var target = detectTarget(e);
	if(target.tagName=='A') {
	  var hrefAtt = target.getAttribute("href");
	  if(hrefAtt!=null) {
	    if(
		hrefAtt.substring(hrefAtt.length, hrefAtt.length-3)=='pdf'
	      )
	      target.setAttribute("target", "new");
	  }
	}
    }



