/* =================================================
    Scripts for José-Luis Sultan website
    These functions consider only Version 4 browsers (or higher)
    (copyright atxoom.com 1998-2006)
   ================================================= */

  var booDEBUG    = false;
  var booMEASURE  = false;

  var MyObjects   = new Array();
  var intMaxWidth = 1024;
  var intWidth;
  var intHeight;

  var intIncTimer = 100;
  var intTimerId  = 0;
  var intTimer2Id = 1;
  var intIncTimer3= 15000;
  var intTimer3Id = 2;
  var intImage    = 0;
  var booMSIE     = (isIE3Mac) ? false:is.ie4up;
  var booNETSCAPE = (isIE3Mac) ? false:is.nav4up;
  var booNETSCAP4 = (isIE3Mac) ? false:is.nav4;
  var booNAV5UP   = (isIE3Mac) ? false:is.nav5up;
  var booAsleep   = true;
  var intRotate   = 0;
  var strColors   = new Array('#808080','#ffcc66', '#ccffcc','993399','#ff0000', '#00ff00', '#ffffff','ff6699','66cc00','00ccff','#ffccff','ccff00');
  var intSpot     = 0;
  var strSpots    = new Array('halo_2_1','halo_2_2','halo_2_3','halo_2_4','halo_2_5','halo_2_6','halo_1');

  var strMyURL = window.location.href;

  setBrowser();

  if (booDEBUG && (!booMSIE && !booNETSCAPE) && (strMyURL.substr(strMyURL.lastIndexOf("/")+1) == 'default.htm')) {
    alert('Nous sommes désolés !\n\nCette page s\'affichera vraisemblablement de manière incorrecte ou incomplète.\n\nVous pouvez signaler ce défaut à www.atxoom.com. Dans ce cas, merci d\'indiquer l\'identification exacte de votre navigateur ("'+ navigator.userAgent.toUpperCase() +'") dans votre message.\n\nNous vous remercions de votre aide.');
  }

// =================================================

function Netscape4Page(booInit)
{
if (booDEBUG) alert('Enters Netscape4Page : '+booInit);
  if (booInit==true) with (navigator) {
    if (booNETSCAP4) {
      document.intPgW=innerWidth; document.intPgH=innerHeight;
      onresize=Netscape4Page;
    }
  }
  else if (innerWidth!=document.intPgW || innerHeight!=document.intPgH) {
    location.reload();
if (booDEBUG) alert('Netscape4Page : Reload Page');
  }
}

/* =================================================

    - MoveInitialize        starts timer :
                             . Length of array MyObjects

    - MoveSet               sets move's properties :
                             . Index of object in array MyObjects
                             . Final X position, final Y position
                             . Expected duration of the move
                             . Number of moves (-1 : only one, 0 : infinite)
                             . Scroll (true : will scroll, false : will scan)

    - MoveStop              stops timer... and every movement
    
   ================================================= */

function MyWindowSize(intReqWidth)
{
if (booDEBUG) alert('Enters MyWindowSize : '+intMaxWidth);

  var intMyWidth = intReqWidth;
  intMaxWidth = intReqWidth;

  if (booNETSCAPE) intMyWidth = Math.min(screen.availWidth,intMaxWidth)-12;
  if (booMSIE)     intMyWidth = Math.min(screen.availWidth,intMaxWidth);
  intWidth = Math.floor(Math.min(intMyWidth,intMaxWidth)*.95);

if (booDEBUG) alert('Exits MyWindowSize : '+intWidth+', '+intHeight);

  return true;
}

function MyWindowDimension()
{
if (booDEBUG) alert('Enters MyWindowDimension');

  var intMyWidth = intMaxWidth;
  intHeight = 760;
  if (booNETSCAPE) {
    intMyWidth = window.document.width;
    intHeight = window.document.height;
  }
  if (booMSIE) {
    intWidth = document.body.scrollWidth;
    intHeight = document.body.scrollHeight;
  }
  intWidth = Math.floor(Math.min(intMyWidth,intMaxWidth)*0.95);

if (booDEBUG) alert('Exits MyWindowDimension : '+intWidth+', '+intHeight);

  return true;
}

function MoveInitialize(intArrayLength,strPrefix)
{
if (booDEBUG) alert('Enters MoveInitialize : '+intArrayLength+', '+strPrefix);

  for (i=0; i < intArrayLength; i++) {
    eval('MyObjects[i] = new MovingObject("' + strPrefix + (i+1) + '")');
  }
  MyWindowDimension();

  return true;
}

function MoveSet(intId, intLastX, intLastY, intDuration, intLoop, booScroll)
{
 var i = intId-1;
 if (booMSIE || booNETSCAPE) {

if (booDEBUG) alert('Enters MoveSet : '+intId+', '+intLastX+', '+intLastY+', '+intDuration+', '+intLoop+', '+booScroll);
/*
    Retrieves objects coordinates and visibility
    Computes and stores X,Y increments
    Sets state to "moving"
    Sets object visibility
*/
    PositionGet(MyObjects[i]);
    MyObjects[i].z=ZindexGet(MyObjects[i].name);
    MyObjects[i].visible=VisibilityGet(MyObjects[i].name);
    MyObjects[i].loop=intLoop;
    MyObjects[i].scroll=booScroll;
    MyObjects[i].xc= MyObjects[i].left;
    MyObjects[i].yc= MyObjects[i].top;
    DimensionGet(MyObjects[i],MoveSet.arguments);

    if(!MyObjects[i].moving) {
      MyObjects[i].xi    = MyObjects[i].left;
      MyObjects[i].yi    = MyObjects[i].top;
    }
    var intOverX = intLastX + MyObjects[i].width - intWidth;
    if (intOverX > 0) intLastX -= intOverX;
    var intOverY = intLastY + MyObjects[i].height - intHeight;
    if (intOverY > 0) intLastY -= intOverY;

    MyObjects[i].xf    = intLastX;
    MyObjects[i].yf    = intLastY;

    MyObjects[i].incx  = MyObjects[i].xf - MyObjects[i].left;
    MyObjects[i].incy  = MyObjects[i].yf - MyObjects[i].top;

    intSteps = intDuration/intIncTimer;
    if (MyObjects[i].loop > 1) {intSteps /= MyObjects[i].loop};
    if (intSteps > 1) {
      MyObjects[i].incx /= intSteps;
      MyObjects[i].incy /= intSteps;
    }

    if (!booNAV5UP) MyObjects[i].moving = true;
    VisibilitySet(MyObjects[i].name,true);
    if (booAsleep) {
      booAsleep = false;
      intTimerId=window.setInterval('MoveOneStep()',intIncTimer);
    }

if (booDEBUG) alert('MoveSet : '+MyObjects[i].name+'\n \n'+ObjectListProperties(MyObjects[i]));

  }
  return true;
}

function MoveStop()
{
  window.clearInterval(intTimer2Id);
  if (!booAsleep) {
    window.clearInterval(intTimerId);
    booAsleep = true;

if (booDEBUG) alert('MoveStop');
  }

  return true;
}

function MoveSpot()
{
//  VisibilitySet('MyHalo',false);
  setIdProperty('MyHalo','visibility','hidden');
  intTimer2Id=window.setInterval('MoveSpotOneStep()',intIncTimer);

  return true;
}

function MoveSpotOneStep()
{

  if (intSpot == 10) {
    moveTo('MyHalo',200+Math.floor(Math.random() * (intWidth-400)),150+ Math.floor(Math.random() * (intHeight-300)));
    setIdProperty('MyHalo','visibility','visible');
//    VisibilitySet('MyHalo',true);
if (booDEBUG) window.status = 'MoveSpotOneStep : Spot set to Visible at X='+(200+Math.floor(Math.random() * (intWidth-400)))+', Y='+(150+ Math.floor(Math.random() * (intHeight-300)));
  }
  else if (intSpot == 11) {
    setIdProperty('MyHalo','visibility','hidden');
//    VisibilitySet('MyHalo',false);
    document.images['MyHaloImg'].src='../images/halos/'+strSpots[Math.floor(Math.random () * (strSpots.length-1))]+'.jpg';
    intSpot = Math.floor(Math.random () * 10);
if (booDEBUG) window.status = 'MoveSpotOneStep : Spot set to Hidden';
  }
  intSpot += 1;
  
}

function TitleColorSet(strTop, strLeft, strH2)
{
if (booDEBUG) alert('Enters TitleColorSet : '+strTop+', '+strLeft+', '+strH2);

  if (booMSIE || booNAV5UP) {
    if (strTop > '')  setIdProperty('TopTitle','color',strTop);
    if (strLeft > '') setIdProperty('LeftTitle','color',strLeft);
    if (strH2 > '')   setIdProperty('H2Title','color',strH2);
  }
/*
  if (booMSIE) {
    if (strTop > '')  document.all['TopTitle'].style.color=strTop;
    if (strLeft > '') document.all['LeftTitle'].style.color=strLeft;
    if (strH2 > '')   document.all['H2Title'].style.color=strH2;
  }
*/

  return true;
}

function DiaporamaStart()
{
  intTimer3Id=window.setInterval("DiaporamaNextImage()",intIncTimer3);
  window.status = 'Diaporama'
}

function DiaporamaNextImage()
{
  if (intImage > (MyImgList.length-1)) window.location = strNextPage;
  for (i=intImage; i <= (MyImgList.length-1); i++) {
    if (MyImgList[i] > '') {
      intImage = i;
      ViewImage(MyImgList[intImage]+'.jpg');
      window.status = 'Diaporama ('+(intImage+1).toString()+')';
      intImage += 1;
      break;
    } 
  }
  intTimer3Id=window.setInterval("DiaporamaNextImage()",intIncTimer3);
  
}

/* =================================================
    Functions for viewing Images in a DHTML layer
   ================================================= */

function DrawMyImgTable()
{
if (booDEBUG) alert('Enters DrawMyImgTable');

  var intMaxLine = (MyImgList.length-1)/3;

  if (booNETSCAP4) {
    document.layers['MyImgTable'].document.write('<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">');
    for (var intLine = 0; intLine <= intMaxLine; intLine++) {
      document.layers['MyImgTable'].document.write('<tr>');
      for (var intRow = 0; intRow <= 2; intRow++) {
        document.layers['MyImgTable'].document.write('<td valign="middle" align="center" width="150" height="227">');
        intImg = intLine*3+intRow;
        if ((MyImgList.length > intImg) && (MyImgList[intImg] > '')) {
          document.layers['MyImgTable'].document.write('<p class="cntr" align="center">');
          document.layers['MyImgTable'].document.write('<a href="javascript:void(ViewImage(\'');
          document.layers['MyImgTable'].document.write(MyImgList[intImg]+'.jpg');
          document.layers['MyImgTable'].document.write('\'));">');
          document.layers['MyImgTable'].document.write('<img src="../images/mini/');
          document.layers['MyImgTable'].document.write('sm_'+MyImgList[intImg].substr(1)+'.jpg');
          document.layers['MyImgTable'].document.write('" border="0" width="150" alt="Voir l\'image..." align="center"></a></p>');
        }
        else {
          document.layers['MyImgTable'].document.write('<p class="rght" align="right">&nbsp;</p>');
        }
        document.layers['MyImgTable'].document.write('</td>');
      }
      document.layers['MyImgTable'].document.write('</tr>');
    }
    document.layers['MyImgTable'].document.write('</table>');
  }
  if (booMSIE || booNAV5UP) {
    document.write('<table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">');
    for (var intLine = 0; intLine <= intMaxLine; intLine++) {
      document.write('<tr>');
      for (var intRow = 0; intRow <= 2; intRow++) {
        document.write('<td valign="middle" align="center" width="150" height="227">');
        intImg = intLine*3+intRow;
        if ((MyImgList.length > intImg) && (MyImgList[intImg] > '')) {
          document.write('<p class="cntr" align="center">');
          document.write('<a href="javascript:void(ViewImage(\'');
          document.write(MyImgList[intImg]+'.jpg');
          document.write('\'));">');
          document.write('<img src="../images/mini/');
          document.write('sm_'+MyImgList[intImg].substr(1)+'.jpg');
          document.write('" border="0" width="150" alt="Voir l\'image..." align="center"></a></p>');
        }
        else {
          document.write('<p class="rght" align="right">&nbsp;</p>');
        }
        document.write('</td>');
      }
      document.write('</tr>');
    }
    document.write('</table>');
  }

if (booDEBUG) alert('Exits DrawMyImgTable');

  return true;
}

function ViewImage(strImageName)
{
if (booDEBUG) alert('Enters ViewImage : '+strImageName);

  window.clearInterval(intTimer3Id);
  window.status = '';
  if (booNETSCAP4) {
    VisibilitySet('MyImgTable',false);
    if (strImageName.substr(0,1) == 'V') {
      VisibilitySet('MyImgViewH',false);
      document.layers['MyImgViewV'].document.images['MyImgV'].src='../images/photos/'+strImageName.substr(1);
      VisibilitySet('MyImgViewV',true);
    }
    else {
      VisibilitySet('MyImgViewV',false);
      document.layers['MyImgViewH'].document.images['MyImgH'].src='../images/photos/'+strImageName.substr(1);
      VisibilitySet('MyImgViewH',true);
    }
    document.images['RgtImg'].src='../images/mini/sm_'+strImageName;
  }
  if (booMSIE || booNAV5UP) {
    setIdProperty('MyImgTable','visibility','hidden');
    setIdProperty('MyImgTable2','visibility','hidden');
    document.images['MyImg'].src='../images/photos/'+strImageName.substr(1);
    if (booMSIE) {
      document.images['LftImg'].src='../images/mini/sm_'+strImageName.substr(1);
      document.images['RgtImg'].src='../images/mini/sm_'+strImageName.substr(1);
    }
    setIdProperty('MyImgView','visibility','visible');
  }

if (booDEBUG) alert('Exits ViewImage');

  return true;
}

function ViewTable()
{
if (booDEBUG) alert('Enters ViewTable');

  window.clearInterval(intTimer3Id);
  window.status = '';
  if (booNETSCAP4) {
    VisibilitySet('MyImgViewV',false);
    VisibilitySet('MyImgViewH',false);
    VisibilitySet('MyImgTable',true);
    document.layers['MyImgViewV'].document.images['MyImgV'].src='../images/photos/spacer.gif';
    document.layers['MyImgViewH'].document.images['MyImgH'].src='../images/photos/spacer.gif';
  }
  if (booMSIE || booNAV5UP) {
    setIdProperty('MyImgView','visibility','hidden');
    setIdProperty('MyImgTable','visibility','visible');
    setIdProperty('MyImgTable2','visibility','visible');
    document.images['MyImg'].src='../images/photos/spacer.gif';
  }

if (booDEBUG) alert('Exits ViewTable');

  return true;
}

/* =================================================
    Additional functions...
    - MovingObject         (presets properties for a new moving object)
    - PositionGet          (retrieves X and Y for a moving object)
    - PositionSet          (sets X and Y)
    - VisibilityGet        (retrieves visibility state)
    - VisibilitySet
    - ZindexGet            (retrieves Z coordinate)
    - ZindexSet
    
    - MoveOneStep          (timer internal function)
    - ObjectPropertiesList (lists name and value for each object's property)

   ================================================= */

function MovingObject(strName)
{
  this.length  = 18;
  this.name    = strName;
  this.left    = null;
  this.top     = null;
  this.xc      = null;
  this.yc      = null;
  this.z       = null;
  this.xi      = null;
  this.yi      = null;
  this.xf      = null;
  this.yf      = null;
  this.width   = null;
  this.height  = null;
  this.incx    = null;
  this.incy    = null;
  this.visible = null;
  this.moving  = false; /* don't change this preset value ! */
  this.loop    = 0;
  this.scroll  = null;
}

function MoveOneStep()
{
/*
  Searches for moving object
  Computes new coordinates
  Changes state and visibility if last (X,Y) is reached
*/
  var booNothingMoves = true;
  for (i=0; i < MyObjects.length; i++) {
    if (MyObjects[i].moving) {
      if (Math.abs(MyObjects[i].xf - MyObjects[i].left) <= Math.abs(MyObjects[i].incx)) {
        MyObjects[i].left = MyObjects[i].xf;
      }
      else {
        MyObjects[i].left += MyObjects[i].incx;
      }
      if (Math.abs(MyObjects[i].yf - MyObjects[i].top) <= Math.abs(MyObjects[i].incy)) {
        MyObjects[i].top = MyObjects[i].yf;
      }
      else {
        MyObjects[i].top += MyObjects[i].incy;
      }
      moveTo(MyObjects[i].name,MyObjects[i].left,MyObjects[i].top);
//    PositionSet(MyObjects[i].name,MyObjects[i].left,MyObjects[i].top);

      if ((MyObjects[i].left == MyObjects[i].xf) && (MyObjects[i].top == MyObjects[i].yf)) {
        if (MyObjects[i].loop < 0) {
          MyObjects[i].moving = false;
          VisibilitySet(MyObjects[i].name,MyObjects[i].visible);
          if (MyObjects[i].scroll) moveTo(MyObjects[i].name,MyObjects[i].xc,MyObjects[i].yc);
//        if (MyObjects[i].scroll) PositionSet(MyObjects[i].name,MyObjects[i].xc,MyObjects[i].yc);
        }
        else {
          if (MyObjects[i].loop > 0) {
            if (--MyObjects[i].loop == 0) {
              MyObjects[i].moving = false;
              VisibilitySet(MyObjects[i].name,MyObjects[i].visible);
              if (MyObjects[i].scroll) moveTo(MyObjects[i].name,MyObjects[i].xc,MyObjects[i].yc);
//            if (MyObjects[i].scroll) PositionSet(MyObjects[i].name,MyObjects[i].xc,MyObjects[i].yc);
            }
            else {
              booNothingMoves = false;
            }
          }
          MoveNextSet(MyObjects[i]);
          booNothingMoves = false;
        }
      }
      else {
        booNothingMoves = false;
      }
    }
  }
  if (booNothingMoves) {
    if (booMSIE || booNAV5UP) {
      if (intRotate >= 30) {
        intRotate = 0;
        strTmp = strColors[0];
        for (var intColor = 0; intColor < (strColors.length-1); intColor++) {
          strColors[intColor] = strColors[intColor+1];
        }
        strColors[strColors.length-1] = getIdProperty('LeftTitle','color');
        setIdProperty('LeftTitle','color',getIdProperty('H2Title','color'));
        setIdProperty('H2Title','color',getIdProperty('TopTitle','color'));
        setIdProperty('TopTitle','color',strTmp);
/*
        strColors[strColors.length-1] = document.all['LeftTitle'].style.color;
        document.all['LeftTitle'].style.color = document.all['H2Title'].style.color;
        document.all['H2Title'].style.color = document.all['TopTitle'].style.color;
        document.all['TopTitle'].style.color = strTmp;
*/
      }
      intRotate += 1;
    }
    else {
      MoveStop();
    }
  }
}

function MoveNextSet(MyObject)
{
if (booDEBUG) alert('Enters MoveNextSet : '+MyObject.name);

  if (MyObject.scroll) {
    MyObject.left=MyObject.xi;
    MyObject.top =MyObject.yi;
  }
  else {
    intTemp = MyObject.xf;
    MyObject.xf = MyObject.xi;
    MyObject.xi = intTemp;
    intTemp = MyObject.yf;
    MyObject.yf = MyObject.yi;
    MyObject.yi = intTemp;
    MyObject.incx = -MyObject.incx;
    MyObject.incy = -MyObject.incy;
  }
if (booDEBUG) alert('Exits MoveNextSet');

  return
}

/* ================================================= */

function PositionGet(MyObject)
{
    MyObject.top =parseInt(getIdProperty(MyObject.name,'top'));
    MyObject.left=parseInt(getIdProperty(MyObject.name,'left'));
/*
  if(booNETSCAPE){
    MyObject.top =document.layers[MyObject.name].top;
    MyObject.left=document.layers[MyObject.name].left;
  }
  if(booMSIE){
    MyObject.top =parseInt(document.all[MyObject.name].style.top);
    MyObject.left=parseInt(document.all[MyObject.name].style.left);
  }
*/
}

function DimensionGet(MyObject)
{
  if (booNAV5UP){
if (booDEBUG) alert(ObjectListProperties(document.layers[MyObject.name]));
    MyObject.width =parseInt(getIdProperty(MyObject.name,'width'));
    MyObject.height=parseInt(getIdProperty(MyObject.name,'height'));
  }
  else if (booNETSCAP4){
if (booDEBUG) alert(ObjectListProperties(document.layers[MyObject.name]));
    MyObject.height=document.layers[MyObject.name].document.height;
    MyObject.width =document.layers[MyObject.name].document.width;
  }
  else if (booMSIE){
if (booDEBUG) alert(ObjectListProperties(document.all[MyObject.name]));
    MyObject.width =document.all[MyObject.name].offsetWidth;
    MyObject.height=document.all[MyObject.name].offsetHeight;
  }
if (booMEASURE) alert('For '+MyObject.name+' : Width = '+MyObject.width+', Length = '+MyObject.height);
}

function PositionSet(strName,intX,intY)
{
  setIdProperty(strName,'left',Math.floor(intX));
  setIdProperty(strName,'top',Math.floor(intY));
/*
  if(booNETSCAPE){
    document.layers[strName].left=Math.floor(intX);
    document.layers[strName].top =Math.floor(intY);
  }
  if(booMSIE){
    document.all[strName].style.left=Math.floor(intX);
    document.all[strName].style.top =Math.floor(intY);
  }
*/
}

function VisibilityGet(strName)
{
  var booVisibility = false;

  booVisibility = (getIdProperty(strName,'visibility').lastIndexOf('hid') < 0);
/*
  if(booNETSCAPE){
    if (document.layers[strName].visibility == "hide") booVisibility=false;
  }
  if(booMSIE){
    if (document.all[strName].style.visibility == "hidden") booVisibility=false;
  }
*/
  return booVisibility;
}

function VisibilitySet(strName,booVisibility)
{
  if(booNETSCAPE){
    setIdProperty(strName,'visibility',(booVisibility) ? "show":"hide");
/*
    document.layers[strName].visibility=(booVisibility) ? "show":"hide";
*/
  }
  if(booMSIE){
    setIdProperty(strName,'visibility',(booVisibility) ? "visible":"hidden");
/*
    document.all[strName].style.visibility=(booVisibility) ? "visible":"hidden";
*/
  }
}

function ZindexGet(strName)
{
  var intZindex = 0;

  intZindex=getIdProperty(strName,'zIndex');
/*
  if(booNETSCAPE){
    intZindex=document.layers[strName].zIndex;
  }
  if(booMSIE){
    intZindex=document.all[strName].style.zIndex;
  }
*/
  return intZindex;
}

function ZindexSet(strName,intZindex)
{
  setIdProperty(strName,'zIndex',intZindex);
/*
  if(booNETSCAPE){
    document.layers[strName].zIndex=Math.floor(intZindex);
  }
  if(booMSIE){
    document.all[strName].style.zIndex=Math.floor(intZindex);
  }
*/
}

function ObjectListProperties(MyObject)
{
  var strList = 'Properties of object ' + MyObject.name + '\n\n';
  for (prop in MyObject) {
    if (MyObject[prop] != null) {
      if ((typeof(MyObject[prop]) == 'string') && (MyObject[prop].length > 0)) {
          strList = strList + prop + '\t (' + typeof(MyObject[prop]) + ')\t = '
          strList = strList + MyObject[prop].substr(0,64) + '\n';
      }
      else if (typeof(MyObject[prop]) == 'function') {
        strList = strList + prop + '\t (' + typeof(MyObject[prop]) + ')\t = '
        strList = strList + '<blacklisted> \n';
      }
      else if ('<'+MyObject[prop]+'>' != '<>') {
        strList = strList + prop + '\t (' + typeof(MyObject[prop]) + ')\t = '
        strList = strList + MyObject[prop] + '\n';
      }
    }
  }
  return strList;
}

/* ================================================= */

function strGetParamValue(strName,strDefaultValue)
{
  var strMyURL = window.location.href;
  var strValue = strDefaultValue;

  if (strMyURL.lastIndexOf("?") > 0) {
    strMyParamString = strMyURL.substr(strMyURL.lastIndexOf("?")+1);

    intPos = strMyParamString.lastIndexOf("=");
    while (intPos > 0) {
      strMyParamValue = strMyParamString.substr(intPos+1);
      strMyParamString = strMyParamString.substr(0,intPos);

      if (strMyParamString.lastIndexOf(";") > 0) {
        intPos = strMyParamString.lastIndexOf(";");
        strMyParamName = strMyParamString.substr(intPos+1);
        strMyParamString = strMyParamString.substr(0,intPos);
      }
      else {
        strMyParamName = strMyParamString;
        strMyParamString = '';
      }
      if (strMyParamName.toLowerCase() == strName.toLowerCase()) {
        strValue = strMyParamValue;
      }
      intPos = strMyParamString.lastIndexOf("=");
    }
  }
  return strValue;
}
