// Share Functions

function footer()
{
document.write("<center>")


document.write ("<a class=footer href=/Terms/Default.asp>Terms</a>&nbsp;|&nbsp;")

document.write ("<a class=footer href=mailto:info@starplexscientific.com>Comments or general inquiries</a>&nbsp;|&nbsp;")

document.write ("<a class=footer href=mailto:webmaster@starplexscientific.com>Technical inquiries</a>&nbsp;|&nbsp;")

document.write ("Maintained by Starplex Scientific Inc., Canada")
}

function openNewWindow(theURL, theTarget, theAttribute) 
{
  // theAttribute included width, height, scroll bar, menu
   window.open(theURL, theTarget, theAttribute);
}

function lastmodified()
{

// format date as dd-mmm-yy example: 12-Jan-99

function date_ddmmmyy(date)
{
  var d = date.getDate();
  var m = date.getMonth() + 1;
  var y = date.getYear();

  // handle different year values 
  // returned by IE and NS in 
  // the year 2000.
  if(y >= 2000)
  {
    y -= 2000;
  }
  if(y >= 100)
  {
    y -= 100;
  }

// could use splitString() here but the following method is more compatible
  var mmm = 
    ( 1==m)?'Jan':( 2==m)?'Feb':(3==m)?'Mar':
    ( 4==m)?'Apr':( 5==m)?'May':(6==m)?'Jun':
    ( 7==m)?'Jul':( 8==m)?'Aug':(9==m)?'Sep':
    (10==m)?'Oct':(11==m)?'Nov':'Dec';

  return "" +
    (d<10?"0"+d:d) + "-" +
    mmm + "-" +
    (y<10?"0"+y:y);
}

// get last modified date of the current document.

function date_lastmodified()
{
  var lmd = document.lastModified;
  var s   = "Unknown";
  var d1;

  // check if we have a valid date
  // before proceeding
  if(0 != (d1=Date.parse(lmd)))
  {
    s = "" + date_ddmmmyy(new Date(d1));
  }

  return s;
}

// finally display the last modified date as DD-MMM-YY

document.write( 
  "Last modified: " + 
  date_lastmodified() );

}








function nextprev(btheURL, ftheURL)
{
  if (btheURL !='')
  { 
     bbimg="/En/Images/PrevOn.gif"; 
     bstr="<a href="+btheURL+"><img src="+bbimg+" border=0 alt=Previous></a>";
  }
  else
  { 
     bbimg="/En/Images/PrevOff.gif"; 
     bstr="<img src="+bbimg+">";
  }

  if (ftheURL !='')
  { 
     fbimg="/En/Images/MoreOn.gif"; 
     fstr="<a href="+ftheURL+"><img src="+fbimg+" border=0 alt=Forward></a>";
  }
  else
  { 
     fbimg="/En/Images/MoreOff.gif"; 
     fstr="<img src="+fbimg+">";
  }

  cstr=bstr+fstr;

  document.write(cstr);
}

function NewWindow(mypage, myname, w, h, scroll)
{
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

// EOF(Shares.js)