<!--


var fileName, ext


if (navigator.appName=='Netscape')
{
  ;
}
if (navigator.appName=='Microsoft Internet Explorer')
{

 var tr = window.location.pathname
 // alert( window.location.pathname )
 len = tr.length
 rs = 0
 for (i = len; i > 0; i--) {
    vb = tr.substring(i,i+1)
    if (vb == "." && rs == 0) {
       // document.write('<hr>' + tr.substring(i+1,len))
       ext  = tr.substring(i+1,len)
       rs = 1
    }
  }
  // document.write( ext + "<hr>")


if (ext == "htm") {

 //alert( window.location.pathname )
 document.write( tr + "*** ")
 tr = "aaa" + tr
 len = tr.length
 rs = 0
 for (i = len; i > 0; i--) {
    vb = tr.substring(i,i+1)
    if (vb == "/" && rs == 0) {
       // document.write('<hr>' + tr.substring(i+1,len))
       fileName  = tr.substring(i+1,len)
       rs = 1
    }
  }

  // alert( window.location.pathname )
  //document.write( fileName + " ")
  // replace .htm with .asp
   len = fileName.length

   for (i = len; i > 0; i--) {
    vb = fileName.substring(i,i+1)
    if (vb == "." ) {

       fileName  =  fileName.substring(0,i)

       // document.write( len)

    }
  }
  fileName = fileName + ".asp"
  // document.write( fileName )
  location.href = fileName


} // if

}



function MM_swapImgRestore() { //v2.0
  if (document.MM_swapImgData != null)
    for (var i=0; i<(document.MM_swapImgData.length-1); i+=2)
      document.MM_swapImgData[i].src = document.MM_swapImgData[i+1];
    // alert("OUT")
    // document.bgColor = "#666"
}

function MM_preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

function MM_swapImage() { //v2.0
  var i,j=0,objStr,obj,swapArray=new Array,oldArray=document.MM_swapImgData;
  for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) {
    objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1];
    if ((objStr.indexOf('document.layers[')==0 && document.layers==null) ||
        (objStr.indexOf('document.all[')   ==0 && document.all   ==null))
      objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length);
    obj = eval(objStr);
    if (obj != null) {
      swapArray[j++] = obj;
      swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j];
      obj.src = MM_swapImage.arguments[i+2];
  } }
  document.MM_swapImgData = swapArray; //used for restore
}


function showHide(pSection, pShow){
		var cal = document.getElementById(pSection);
		if (navigator.userAgent.indexOf("Netscape6")!=-1){
			if (pShow==null)
				{if (cal.style.visibility=="visible")
					{pShow=false}
					else
					{pShow=true};
				};
			if (pShow==false ) {
				cal.style.visibility = "hidden";
			} else {
				cal.style.visibility = "visible";
			};
		} else {
			if (pShow==null)
				{if (cal.style.display=="none")
						{pShow=true}
					else {pShow=false};
				};
			if (pShow==true){
				cal.style.display="";
			} else {
				cal.style.display="none";
			}
		};
	};



   //  Suggest adding the following to this JS include file:


 function custom_print() {
    if (document.all) {
        if (navigator.appVersion.indexOf("5.0") == -1) {
            var OLECMDID_PRINT = 6;
            var OLECMDEXECOPT_DONTPROMPTUSER = 2;
            var OLECMDEXECOPT_PROMPTUSER = 1;
            var WebBrowser = "<OBJECT ID=\"WebBrowser1\" WIDTH=0 HEIGHT=0 CLASSID=\"CLSID:8856F961-340A-11D0-A96B-00C04FD705A2\"></OBJECT>";
            document.body.insertAdjacentHTML("beforeEnd", WebBrowser);
            WebBrowser1.ExecWB(6, 2);
            WebBrowser1.outerHTML = "";
        } else {
            self.print();
        }
    } else {
        self.print();
    }
  }



function getMenuHeight(whichTime) {

}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


//  added for the cookie:  cookie  cookie  cookie   cookie   cookie   cookie  cookie  cookie   cookie   cookie
//  added for the cookie:  cookie  cookie  cookie   cookie   cookie   cookie  cookie  cookie   cookie   cookie
//  added for the cookie:  cookie  cookie  cookie   cookie   cookie   cookie  cookie  cookie   cookie   cookie





var myoutput ="w";

function getCookieVal (offset)
   {
   var out;

   var endstr = document.cookie.indexOf (";", offset);
   if (endstr == -1)
      endstr = document.cookie.length;
   out = unescape(document.cookie.substring(offset, endstr));
   // alert(out);
   return unescape(document.cookie.substring(offset, endstr));
   }

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 Get_Cookie(name) {
    var start = document.cookie.indexOf(name+"=");
    var len = start+name.length+1;
    if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
    if (start == -1) return null;
    var end = document.cookie.indexOf(";",len);
    if (end == -1) end = document.cookie.length;
    return unescape(document.cookie.substring(len,end));
}




function SetCookieValue (name, value)
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (argc > 2) ? argv[2] : null;
   var path = (argc > 3) ? argv[3] : null;
   var domain = (argc > 4) ? argv[4] : null;
   var secure = (argc > 5) ? argv[5] : false;

   var namePH =  document.forms[1].name.value;
   var emailPH =  document.forms[1].email.value;
   var companyPH =  document.forms[1].company.value;
   var workphonePH =  document.forms[1].workphone.value;
   var cityPH =  document.forms[1].city.value;



   alert(document.forms[1].email.value+document.forms[1].company.value+document.forms[1].workphone.value);

   document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");

   }



function SetCookie (name, value)
   {
   var argv = SetCookie.arguments;
   var argc = SetCookie.arguments.length;
   var expires = (argc > 2) ? argv[2] : null;
   var path = (argc > 3) ? argv[3] : null;
   var domain = (argc > 4) ? argv[4] : null;
   var secure = (argc > 5) ? argv[5] : false;

//   // testing for reading in form values:  not needed 
//   var namePH =  document.forms[1].name.value;
//   var emailPH =  document.forms[1].email.value;
//   var companyPH =  document.forms[1].company.value;
//   var workphonePH =  document.forms[1].workphone.value;
//   var cityPH =  document.forms[1].city.value;

//  alert(document.forms[1].email.value+document.forms[1].company.value+document.forms[1].workphone.value);

   document.cookie = name + "=" + escape (value) +
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
        ((path == null) ? "" : ("; path=" + path)) +
        ((domain == null) ? "" : ("; domain=" + domain)) +
        ((secure == true) ? "; secure" : "");

   }


function DeleteCookie ()
   {
   var exp = new Date();
   exp.setTime (exp.getTime() - 1000000000); // This cookie is history (changed -1 to make it previous time)
   var cval = GetCookie ('DemoName');
   document.cookie ='DemoName' + "=" + cval + "; expires=" + exp.toGMTString();
   document.write("The cookie has been deleted.");
   }//Deactivate Cloaking

   // Activate Cloaking// Can be used to display name on loading of page.
// Requires onLoad in BODY statement//function DisplayNameOnStartUp()
//   {//   if(GetCookie('DemoName') != null)
//      {//      alert("Welcome back "+GetCookie('DemoName'));
//      }//   }
// Alert box for Test Cookie
function DisplayName()
   {
   if(GetCookie('DemoName') != null)
      document.write("Welcome back "+GetCookie('DemoName'));
   else
      document.write("You must set the cookie first.");
   }
function MyDisplayName()
   {
   if(GetCookie('DemoName') != null)
      myoutput = "Demo Name = " + GetCookie('DemoName') ;
   else
      myoutput = "Null returned by getCookie" ;

     return myoutput;
   }



// Clears text box after setting cookie
function SetTheCookie()
   {
   if(document.forms[0].elements[0].value.length != 0)
      {
      var expdate = new Date ();
      expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
      SetCookie('CVL-QVForum', document.forms[0].elements[0].value, expdate);
      SetCookie('DemoName', document.forms[0].elements[0].value, expdate);
      // document.write('Cookie has been set to ' + document.forms[0].elements[0].value + '.');

      myoutput =   + "Cookie has been set to " + document.forms[0].elements[0].value + "." ;
      // document.location="read_write_delete.html";

      // document.forms[0].elements[0].value = " ";
      return false;
      }
   else
      {
      document.write('You must sign-in first.');
      return false;
      }
   }


function SetTheCookieValue()
   {
   if(document.forms[0].elements[0].value.length != 0)
      {

      var expdate = new Date ();
      expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 365));
      SetCookieValue('DemoName', document.forms[0].elements[0].value, expdate);
      // document.write('Cookie has been set to ' + document.forms[0].elements[0].value + '.');

      myoutput =   + "Cookie has been set to " + document.forms[0].elements[0].value + "." ;
      // document.location="read_write_delete.html";

      // document.forms[0].elements[0].value = " ";
      return false;
      }
   else
      {
      document.write('You must sign-in first.');
      return false;
      }
   }



// Alert box with instructions for signing-in


var nocookie=0;

function setToNoCookie(){
    nocookie=1;
    // alert("No Cookie will be set");
}

/*function doesCookieExist(reddir) {     // PH  baddly programmed simple redirrection
    var nom;
    nom = Get_Cookie('DemoName');

    if(nocookie==0) 
    {
        //  alert(" nocookie = zero ");
        if (nom == null) {
           if (reddir==1 ) {     // elements[0].value
                   // window.document.form1.pPageNumber.value = 1  
                   location.href = "biforum.asp?pPageNumber=1";
           }
           else if (reddir==2 ) {
                   location.href = "biforum.asp?pPageNumber=2";
           }
           else if (reddir==3 ) {
                   location.href = "biforum.asp?pPageNumber=3";
           }
           else if (reddir==4 ) {
                   location.href = "biforum.asp?pPageNumber=4";
           }
           else if (reddir==5 ) {
                   location.href = "biforum.asp?pPageNumber=5";
           }
           else if (reddir==6 ) {
                   location.href = "biforum.asp?pPageNumber=6";
           }
        }
    }
    else {
           if (reddir==1 ) {
                   location.href = "forum_datasheets.asp";
           }
           else if (reddir==2 ) {
                   location.href = "forum_edemo.asp";
           }
           else if (reddir==3 ) {
                   location.href = "forum_industrynews.asp";
           }
           else if (reddir==4 ) {
                   location.href = "forum_featuretour.asp";
           }
           else if (reddir==5 ) {
                   location.href = "forum_successstories.asp";
           }
           else if (reddir==5 ) {
                   location.href = "forum_whitepapers.asp";
           }
           
           
    }

}*/


function Help()
   {
   document.write("INSTRUCTIONS"+"\n"+"\n"+"Step 1  Sign-in in the text box."+"\n"+"\n"+"Step 2  Click on Set The Cookie."+"\n"+"\n"+"Step 3  Click on Test The Cookie."+"\n"+"\n"+"Step 4  Reload page twice."+"\n"+"\n"+"Delete Cookie expires cookie.");
   }



function returnOUTPUT(){
      //  myoutput =   "Cookie has been set to " + document.forms[0].elements[0].value + "." ;
      //  myoutput =   "Created Cookie";
      myoutput =  MyDisplayName();
      return myoutput;
}



function display_menu(y){
  var x
  x = y;
   if(x==1){   
    showHide('ProdOv', false);
    showHide('ComOv', false);
    showHide('SERVICES', false);
    showHide('CRMF', false);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', false);
   }
   else if(x==2){  
    showHide('ComOv', true);    
    showHide('ProdOv', false);    
    showHide('SERVICES', false);
    showHide('CRMF', false);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', false);
   }
   else if(x==3){  
    showHide('ComOv', false); 
    showHide('ProdOv', true);   
    showHide('SERVICES', false);
    showHide('CRMF', false);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', false);
   }
   else if(x==4){  
    showHide('ComOv', false);
    showHide('ProdOv', false);
    showHide('SERVICES', false);
    showHide('CRMF', false);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', true);
   }
   else if(x==5){  
    showHide('ComOv', false); 
    showHide('ProdOv', false); 
    showHide('SERVICES', true);  
    showHide('CRMF', false);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', false);
   }
   else if(x==6){  
    showHide('ComOv', false); 
    showHide('ProdOv', false);   
    showHide('SERVICES', false);
    showHide('CRMF', true);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', false);
   }
   else if(x==7){  // mouse over body, want menu to disappear
    showHide('ComOv', false);
    showHide('ProdOv', false);    
    showHide('SERVICES', false);
    showHide('CRMF', false);
    showHide('APPROACH', false);
    showHide('CUSTOMERS', false);
   }
   else if(x==8){  
    showHide('ComOv', false);
    showHide('ProdOv', false);
    showHide('SERVICES', false);
    showHide('CRMF', false);
    showHide('APPROACH', true);
    showHide('CUSTOMERS', false);
   }
  }


<!--old code -->
// This script and many more are available free online at -->
// The JavaScript Source!! http://javascript.internet.com -->

// Begin
//slider's width
var swidth=500

//slider's height
var sheight=38

//slider's speed
var sspeed=1

//messages: change to your own; use as many as you'd like; 
//set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()

singletext[0]='<div align="left"><p class="news"> ' +
         '   The Power of Simplicity.       <br><br>' +

         ' </p>  </div>';

singletext[1]='<div align="left"> <p class="news">  ' +

         '   Quick: Implemented in days.        <br><br>' +

         '  </p>  </div>';

 singletext[2]='<div align="left"> <p class="news">  ' +

         '   Qlear: Integrated dashboards & reporting.            <br><br><br>' +

         ' </p>  </div>';
         
 singletext[3]='<div align="left"> <p class="news">  ' +

         '   Qool: A fun, simple, visually interactive experience.            <br><br><br>' +

         ' </p>  </div>';
         

if (singletext.length>1)
i=1
else
i=0
function start(){
if (document.all){
ieslider1.style.top=sheight
iemarquee(ieslider1)
}
else if (document.layers){
document.ns4slider.document.ns4slider1.top=sheight
document.ns4slider.document.ns4slider1.visibility='show'
ns4marquee(document.ns4slider.document.ns4slider1)
}
else if (document.getElementById&&!document.all){
document.getElementById('ns6slider1').style.top=sheight
ns6marquee(document.getElementById('ns6slider1'))
}
}
function iemarquee(whichdiv){
iediv=eval(whichdiv)
if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
iediv.style.pixelTop=0
setTimeout("iemarquee(iediv)",100)
}
if (iediv.style.pixelTop>=sheight*-1){
iediv.style.pixelTop-=sspeed
setTimeout("iemarquee(iediv)",100)
}
else{
iediv.style.pixelTop=sheight
iediv.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns4marquee(whichlayer){
ns4layer=eval(whichlayer)
if (ns4layer.top>0&&ns4layer.top<=sspeed){
ns4layer.top=0
setTimeout("ns4marquee(ns4layer)",100)
}
if (ns4layer.top>=sheight*-1){
ns4layer.top-=sspeed
setTimeout("ns4marquee(ns4layer)",100)
}
else{
ns4layer.top=sheight
ns4layer.document.write(singletext[i])
ns4layer.document.close()
if (i==singletext.length-1)
i=0
else
i++
}
}
function ns6marquee(whichdiv){
ns6div=eval(whichdiv)
if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
ns6div.style.top=0
setTimeout("ns6marquee(ns6div)",100)
}
if (parseInt(ns6div.style.top)>=sheight*-1){
ns6div.style.top=parseInt(ns6div.style.top)-sspeed
setTimeout("ns6marquee(ns6div)",100)
}
else{
ns6div.style.top=sheight
ns6div.innerHTML=singletext[i]
if (i==singletext.length-1)
i=0
else
i++
}
}







//   v ticker scroller by   Paul Hayden    ******************************************************


function run_vScroller(){

}


function nextstep(){

  if (cursor=="\\"){
     cursor="|" ;
   }
  else if (cursor=="|"){
     cursor="-";}
  else if (cursor=="-"){
     cursor="-";}
  else if (cursor=="*"){
     cursor="\\";
  }

  nextchar++;
  temp+=line[nextline].charAt(nextchar);
  document.bannerform.banner.value=temp+cursor
  setTimeout("animate()",100)

}


function animate(){
if (temp==line[nextline] & temp.length==line[nextline].length & nextline!=lines){
nextline++;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",4000)}
else if (nextline==lines & temp==line[nextline] & temp.length==line[nextline].length){
nextline=1;
nextchar=-1;
document.bannerform.banner.value=temp;
temp="";
setTimeout("nextstep()",4000)}
else{
 nextstep()
 }
}





function PopupImage(image_name,X,Y)
{
	var WinWidth = X;
	var WinHeight = Y;
	
	var awnd = getWindow('',image_name,WinWidth,WinHeight,0,0,0);
	awnd.focus();
}

function getWindow(pName,pUrl,pWidth,pHeight,pResize,pScroll,pStatus)
{
//pName - window name [string]
//pWidth - window width [int]
//pHeight - window width [int]
//pUrl - page url to open [string]
//pResize - resizeable [0 1]
//pScroll - scrollbars [0 1]
//pStatus - windows status [0 1]

  var leftcorner  = (self.screen.availWidth / 2) - pWidth/2;
  var rightcorner = (self.screen.availHeight / 2) - pHeight/2;
  var args="width=" + pWidth + ",height=" + pHeight + ",resizable=" + pResize + ",scrollbars=" + pScroll + ",status=" + pStatus + ", left=" + leftcorner + ", top=" + rightcorner ;
  var remote = window.open(pUrl,pName,args);


  // if ( pName == "ContactList")  alert(pUrl)


  if (remote != null)
  {
    if (remote.opener == null)
      remote.opener = self;
  }
  return remote;
}

-->
