/* IMAGES */
// For page_top.htm

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];
}

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
}

//For index.htm - rotating Flash/image files
function randomImage()
{
var mypic_array = new Array("Fal32Imaging","ejesS2");
var imageNumber=Math.round(Math.random()*1);
var myPic = "http://www.phoenixsoftware.com/images/banners/" + mypic_array[imageNumber] + ".swf";
document.write('<font style="color:FFFFFF">My Picture: ' + myPic);
//If this browser understands the mimeTypes property and recognizes the MIME Type //"application/x-shockwave-flash"...
if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="310" height="310" align="middle" vspace="0">');
 document.write('<param name=movie value=' + myPic + '>'); 
 document.write('<param name=quality value=high><param name="LOOP" value="false">');
 document.write('<EMBED SRC=' + myPic + 'WIDTH="310" HEIGHT="310" LOOP="false" QUALITY="high"></object>');
 }
}

/* For links to addondemo on Imaging.htm */

/* For addondemo buttons */
function defineImages()
{
// for home button
home1=new Image
home1.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/home1.gif"
home2=new Image
home2.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/home2.gif"

// for back button
back1=new Image
back1.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/back1.gif"
back2=new Image
back2.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/back2.gif"

// for next button
next1=new Image
next1.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/next1.gif"
next2=new Image
next2.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/next2.gif"

// for end button
end1=new Image
end1.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/end1.gif"
end2=new Image
end2.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/end2.gif"

// for additional features buttons
exinfo1=new Image
exinfo1.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/exinfo1.gif"
exinfo2=new Image
exinfo2.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/exinfo2.gif"

highlights1=new Image
highlights1.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/highlights1.jpg"
highlights2=new Image
highlights2.src="http://www.phoenixsoftware.com/Falcon/Falcon32/addondemo/images/highlights2.jpg"
}

/* END OF IMAGES */

/* POPUP WINDOWS */
/* For displaying linked page in previous window (Predown.htm) */
function loadinprev(url, closeSelf){
	self.opener.location = url;
	if(closeSelf) self.close();
	}

/* Popup window used on numerous pages */
function popWindow(url,params){
myWin=window.open(url,title,params,true)
;
myWin.focus();
}

var popWin = null    // use this when referring to pop-up window
var winCount = 0
var winName = "popWin"
function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop){
  var d_winLeft = 20  // default, pixels from screen left to window left
  var d_winTop = 20   // default, pixels from screen top to window top
  winName = "popWin" + winCount++ //unique name for each pop-up window
  closePopWin()           // close any previously opened pop-up window
  if (openPopWin.arguments.length >= 4)  // any additional features? 
    winFeatures = "," + winFeatures
  else 
    winFeatures = "" 
  if (openPopWin.arguments.length == 6)  // location specified
    winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
  else
    winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
  popWin = window.open(winURL, winName, "width=" + winWidth 
           + ",height=" + winHeight + winFeatures)
  }
function closePopWin(){    // close pop-up window if it is open 
  if (navigator.appName != "Microsoft Internet Explorer" 
      || parseInt(navigator.appVersion) >=4) //do not close if early IE
    if(popWin != null) if(!popWin.closed) popWin.close() 
  }
function getLocation(winWidth, winHeight, winLeft, winTop){
  return ""
  }
  
/* for closing popup windows; CONDOR popups use */
function closeIt() 
{
  close();
}
  
/* END OF POPUP WINDOWS */

/* FORMS */
/* NOTE: CODE FOR PROTECTED FORMS IS IN psif.js */

/* For displaying the pre-evaluation window to select a product; search all files, then remove when new download system in place */
function evalWindow(url){
myWin=window.open(url,"preval","width=300,height=50,screenx=500,screeny=500,resizable=yes,alwaysRaised", true);
myWin.focus();
}

/* For displaying the product corrective services window */
function corrWindow(url){
myWin=window.open(url,"corr","width=790,height=1075,screenx=100,screeny=100,scrollbars=yes,alwaysRaised", true);
myWin.focus();
}

/* Outdated function for displaying pre-download and pre-evaluation pages in small window to select a product; remove */
function sizedWindow(url,title,wd,ht,sx,sy,resz)
{
dims = "width=" + wd + ",height=" + ht + ",screenx=" + sx + ",screeny=" + sy + ",resizable=" + resz;
dims += ",alwaysRaised";
myWin=window.open(url,title,dims, true);
myWin.focus();
}

/* For (E)JES signin script signin_ejes.htm */
function enter()
{
   user = document.frm.user.value;
   pass = document.frm.pwd.value;
   if ((user == "") || (pass == ""))
   {
   alert("Please fill in the user ID and password");
   }
  else
   {
   window.location.href = "ftp://"+user+":"+pass+"@phoenixsoftware.com/pub/ejes/";
   }
}

function corr_srv()
{
   user = document.frm.user.value;
   pass = document.frm.pwd.value;
   if ((user == "") || (pass == ""))
   {
   alert("Please fill in the user ID and password");
   }
  else
   {
   window.location.href = "ftp://"+user+":"+pass+"@phoenixsoftware.com/pub/ejes/service/";
   }
}

/* Was for logging in for (E)JES corrective service on version index pages (EJES/corrective_service/lv4r7index.htm); currently not used */
function corrective_service()
{
   fullURL = window.document.URL
   ver = fullURL.substring(fullURL.indexOf('?')+1, fullURL.length)
   user = document.frm.user.value;
   pass = document.frm.pwd.value;
   ftpDir = "ftp://"+user+":"+pass+"@phoenixsoftware.com/pub/ejes/service/"+ver+"/00index.htm";
   if ((user == "") || (pass == ""))
   {
   alert("Please enter your user ID and password.");
   }
  else
   {
   window.location.href = ftpDir;
   }
}

/* Eliminate this one from corrective service link on support page */
function enter_service()
{
   user = document.frm.user.value;
   pass = document.frm.pwd.value;
   if ((user == "") || (pass == ""))
   {
   alert("Please fill in the user ID and password");
   }
  else
   {
   window.location.href = "ftp://"+user+":"+pass+"@phoenixsoftware.com/pub/ejes/service/";
   }
}

/* For (E)JES signin */
function enterE()
{
   user = document.frm.user.value;
   pass = document.frm.pwd.value;
   if ((user == "") || (pass == ""))
   {
   alert("Please fill in the user ID and password");
   }
  else
   {
   window.location.href = "ftp://"+user+":"+pass+"@phoenixsoftware.com/pub/ejes";
   }
}

/* check email address on forms */

/*  Changes:  Sandeep V. Tamhankar (stamhankar@hotmail.com) */
/*  The JavaScript Source!! http://javascript.internet.com */

/* 1.1.2: Fixed a bug where trailing . in e-mail address was passing
            (the bug is actually in the weak regexp engine of the browser; I
            simplified the regexps to make it work).
   1.1.1: Removed restriction that countries must be preceded by a domain,
            so abc@host.uk is now legal.  However, there's still the 
            restriction that an address must end in a two or three letter
            word.
     1.1: Rewrote most of the function to conform more closely to RFC 822.
     1.0: Original  */

/* Begin */
function emailCheck (emailStr) {
/* Check so see if the entered e-mail address fits 
   the user@domain format.  It also is used to separate 
   the username from the domain. */
var emailPat=/^(.+)@(.+)$/
/* Pattern for matching all special characters, 
   which include ( ) < > @ , ; : \ " . [ ]; 
   they are not allowed in the address.   */
var specialChars="\\(\\)<>@,;:\\\\\\\"\\.\\[\\]"
/* The range of characters allowed in a username or domainname  
   by stating which chars aren't allowed. */
var validChars="\[^\\s" + specialChars + "\]"
/* Pattern applies if the "user" is a quoted string (in
   which case, there are no rules about which characters are allowed
   and which aren't; anything goes).  E.g. "jiminy cricket"@disney.com
   is a legal e-mail address. */
var quotedUser="(\"[^\"]*\")"
/* For domains that are IP addresses, rather than symbolic names,
   e.g., joe@[123.124.233.4] is a legal email address. 
   NOTE: The square brackets are required. */
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/
/* The following string represents an atom (basically a series of
   non-special characters.) */
var atom=validChars + '+'
/* The following string represents one word in the typical username.
   For example, in john.doe@somewhere.com, john and doe are words.
   A word is either an atom or quoted string. */
var word="(" + atom + "|" + quotedUser + ")"
// Pattern that describes the structure of the user
var userPat=new RegExp("^" + word + "(\\." + word + ")*$")
/* Pattern that describes the structure of a standard symbolic
   domain, as opposed to ipDomainPat, shown above. */
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$")

/* Figure out if the supplied address is valid. */

/* Pattern breaks up user@domain into
   pieces that are easy to analyze. */
var matchArray=emailStr.match(emailPat)
if (matchArray==null) {
  /* This address doesn't fit the standard format */
	alert("Email address seems incorrect (check @ and .'s)")
	return false
}
var user=matchArray[1]
var domain=matchArray[2]

// See if "user" is valid 
if (user.match(userPat)==null) {
    // user is not valid
    alert("Invalid email user name.")
    return false
}

/* Validate IP address if the email address is at an IP address */
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("Invalid IP address.")
		return false
	    }
    }
    return true
}

// Domain is symbolic name
var domainArray=domain.match(domainPat)
if (domainArray==null) {
	alert("Invalid domain name.")
    return false
}

/* domain name seems valid; make sure that it ends in a
   three-letter word (com, edu, gov, etc.) or a two-letter word,
   representing country (uk, nl), and that there's a hostname preceding 
   the domain or country. */

/* Break up the domain to get a count of 
   how many atoms it consists of. */
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("The email address must end in a three-letter domain, or two-letter country code.")
   return false
}

// Make sure there's a host name preceding the domain.
if (len<2) {
   var errStr="This email address is missing a host name."
   alert(errStr)
   return false
}

// If we've gotten this far, everything's valid
return true;
}
// end of email checking routine


/* For validating form fields */
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please fill in the "+shortFieldName+" field.");
return false;
}
else
return true;
}

/* Validating form fields on Evaluation.php */

function checkreq(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
if (tempobj.name == "requiredFirstName")
{
 shortFieldName = "First Name";
}
else if (tempobj.name == "requiredFirstName")
{
 shortFieldName = "First Name";
}
else if (tempobj.name == "requiredFirstName")
{
 shortFieldName = "First Name";
}
else if (tempobj.name == "requiredLastName")
{
 shortFieldName = "Last Name";
}
else if (tempobj.name == "requiredTitle")
{
 shortFieldName = "Title";
}
else if (tempobj.name == "requiredCompany")
{
 shortFieldName = "Company";
}
else if (tempobj.name == "requiredAddress1")
{
 shortFieldName = "Address";
}
else if (tempobj.name == "requiredCity")
{
 shortFieldName = "City";
}
else if (tempobj.name == "requiredState")
{
 shortFieldName = "State/Province";
}
else if (tempobj.name == "requiredZip")
{
 shortFieldName = "Zip/Postal Code";
}
else if (tempobj.name == "requiredPhone")
{
 shortFieldName = "Phone";
}
else if (tempobj.name == "requiredEmail")
{
 shortFieldName = "Email";
}
else if (tempobj.name == "requiredMainOS")
{
  shortFieldName = "Mainframe OS";
}
else if (tempobj.name == "requiredNumUsers")
{
  shortFieldName = "Number of Users/Workstations";
}
alert("Please fill in the "+shortFieldName+" field.");
return false;
}
else
return true;
}

/* For PRForm/PsiProblemReportForm.htm */

function IsFormValid()
{
	if (document.ProblemReport.submit_by.value == "")
	{
		alert('Please fill in your email address.');
		return false;
	}
	else if (document.ProblemReport.Product.value == "Select one")
	{
		alert('Please select a product.');
		return false;
	}
	else if (document.ProblemReport.Synopsis.value == "")
	{
		alert('Please enter a synopsis of the problem.');
		return false;
	}
	else if (document.ProblemReport.Class.value == "Select one")
	{
		alert('Please select a class.');
		return false;
	}
	else if (document.ProblemReport.Description.value == "")
	{
		alert('Please enter a detailed description of the problem.');
		return false;
	}
 return true;
}

// For tech_support_form.htm
// Make sure all required data is filled in; if not, display appropriate message
function checkForm()
{
	if (document.TechForm.Name.value == "")
	{
		alert('Please fill in your name.');
		return false;
	}
	else if (document.TechForm.Company.value == "")
	{
		alert('Please fill in the name of your company.');
		return false;
	}
	else if (document.TechForm.Phone.value == "")
	{
		alert('Please fill in your phone number.');
		return false;
	}
	else if (document.TechForm.Email.value == "")
	{
		alert('Please fill in your email address.');
		return false;
	}
 	else if (document.TechForm.Product.value == "Select one")
	{
		alert('Please select a product.');
		return false;
	}
 return true;
}
/* END OF FORMS */

/* FLASH */
//For EJES/ejes.htm - banner
function ejesFlash()
{
document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"450\" height=\"75\" vspace=\"5\" align=\"absmiddle\">');
document.write('<param name=\"movie\" value=\"../images/banners/EjesVerIsHere.swf\"><param name=\"quality\" value=\"high\">');
document.write('<embed src=\"../images/banners/EjesVerIsHere.swf\" width=\"450\" height=\"75\" vspace=\"5\" align=\"absmiddle\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed></object>');
}

//For Condor/FlashDemo.htm - demo
function democondorFlash()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="800" height="600" title="CONDOR Demo">');
document.write('<param name="movie" value="../images/banners/condordemo.swf"><param name="quality" value="high">');
document.write('<embed src="../images/banners/condordemo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="800" height="600"></embed></object>');
}

//For EJES/FlashDemo.htm - demo
function demoejesFlash()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="660" height="525">');
document.write('<param name="movie" value="../images/banners/EjesDemo.swf"><param name="quality" value="high">');
document.write('<embed src="../images/banners/EjesDemo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="660" height="525"></embed></object>');
}

//For EJES/FlashDemoWS.htm - demo
function demoejeswsFlash()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="660" height="525">');
document.write('<param name="movie" value="../images/banners/EjesWSDemo.swf"><param name="quality" value="high">');
document.write('<embed src="../images/banners/EjesWSDemo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="660" height="525"></embed></object>');
}

//For training/index.htm - (E)JES demo with audio
function demoejesaudioFlash()
{
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="720" height="600">');
document.write('<param name="movie" value="main.swf"><param name="quality" value="high">');
document.write('<embed src="main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="720" height="600"></embed></object>');
}
/* END OF FLASH */

/* EMAIL LINKS */
/* For general support email address */
function support(subj)
{
	part1 = "support";
    part3 = "phoenixsoftware";
    part4 = ".com";
    document.write('<a href=\"mailto:' + part1 + '@' + part3 + part4 + '?SUBJECT=' + subj + '\">');
    document.write('Technical Support</a>');
}

/* For general webmaster email address */
function wbm(subj)
{
	part1 = "webmaster";
    part3 = "phoenixsoftware";
    part4 = ".com";
    document.write('<a href=\"mailto:' + part1 + '@' + part3 + part4 + '?SUBJECT=' + subj + '\">');
    document.write('webmaster</a>');
}

/* for email link in footer */
function feedback(subj)
{
	part1 = "sales";
    part3 = "phoenixsoftware";
    part4 = ".com";
    document.write('<a href=\"mailto:' + part1 + '@' + part3 + part4 + '?SUBJECT=' + subj + '\">');
    document.write('email</a>');
}

/* email address for download.php */
function getDest()
{
var inm1="submit";
var inm2="to";
var inm=inm1 + "_" + inm2;
var tp="hidden";
var fm1="vse";
var fm2="phoenix";
var fm3="software";
var fs1="support";
var tail = fm2 + fm3 + ".com";
var fm = "bot." + fm1 + "@" + tail; 
var fs = fs1 + "@" + tail; 

document.write('<');
document.write('input type="' + tp + '" ');
document.write('name="' + inm + '" ');
document.write('value="');
document.write(fm + ',' + fs + '"');
document.write('>');
}

/* For Fred's email in keyletter page */
function presContactk()
{
	part1 = "Fred";
	part2 = "Hoschett";
    part3 = "phoenixsoftware";
    part4 = ".com";
	subject = "Phoenix Software International Acquires Ascential Software";
    document.write('<a href=\"mailto:' + part1 + part2 + '@' + part3 + part4 + '?SUBJECT=' + subject + '\">');
    document.write('email<\/a>');
}

/* For keyletter email address */
function supContactk()
{
			 part1 = "support";
             part2 = "phoenixsoftware";
             part3 = ".com";
			 subject = "Phoenix Software International Acquires Ascential Software";
             document.write('<a href=\"mailto:' + part1 + '@' + part2 + part3 + '?SUBJECT=' + subject + '\">');
             document.write('Support<\/a>');
}

/* For scanopticsletter page email address*/
function supContacts()
{
			 part1 = "support";
             part2 = "phoenixsoftware";
             part3 = ".com";
             document.write('<a href=\"mailto:' + part1 + '@' + part2 + part3 + '\">');
             document.write('Support<\/a>');
}

/* For ASG page email address*/
function supContacta()
{
			 part1 = "support";
             part2 = "phoenixsoftware";
             part3 = ".com";
             document.write('<a href=\"mailto:' + part1 + '@' + part2 + part3 + '\">');
             document.write('email<\/a>');
}

/* For support email address in scan-optics page */
function supts()
{
	part1 = "support";
    part3 = "vikingsoft";
    part4 = ".com";
	subject = "Phoenix Software International Acquires Scan-Optics Software";
    document.write('<a href=\"mailto:' + part1 + '@' + part3 + part4 + '?SUBJECT=' + subject + '\">');
    document.write(part1 + '@' + part3 + part4 + '</a>');
}

/* For Kevin Keyes' email address in (E)JES workstation download pages */
function sales()
{
	part1 = "kevin";
    part2 = "keyes";
    part3 = "phoenixsoftware";
    part4 = ".com";
    part5 = "Sales";
	subject = "Information regarding downloads";
    document.write('<a href=\"mailto:' + part1 + part2 +'@' + part3 + part4 + '?SUBJECT=' + subject + '\">');
    document.write(part5 + '</a>');
}

/* For Kevin Keyes' email address in (E)JES workstation International page */
function dir()
{
	part1 = "kevin";
    part2 = "keyes";
    part3 = "phoenixsoftware";
    part4 = ".com";
    part5 = "Kevin Keyes";
	subject = "International Request";
    document.write('<a href=\"mailto:' + part1 + part2 +'@' + part3 + part4 + '?SUBJECT=' + subject + '\">');
    document.write(part5 + '</a>');
}

/* END OF EMAIL LINKS */

/* MISCELLANEOUS */

/* DETERMINE STATUS BY DATE on MAINFRAME SUPPORT MATRIX (prod_support.htm) */
function getStatus(sDate) {
	var tDate = new Date();
	var tMon = tDate.getMonth();
	var tMo = tMon + 1;
	var tYr = tDate.getFullYear();
	var months = new Array();
	months[1] = "Jan";
	months[2] = "Feb";
	months[3] = "Mar";
	months[4] = "Apr";
	months[5] = "May";
	months[6] = "Jun";
	months[7] = "Jul";
	months[8] = "Aug";
	months[9] = "Sep";
	months[10] = "Oct";
	months[11] = "Nov";
	months[12] = "Dec";

	var sMon = sDate.substr(0,3);
	var sMo = months.indexOf(sMon);
	var sYr = sDate.substr(4);
	if ( (sYr > tYr) || ((sYr == tYr) && (sMo > tMo)) ){
		document.write('Serviced');
	}
	else if ( (sYr < tYr) || ((sYr == tYr) && (sMo < tMo)) || ((sYr == tYr) && (sMo == tMo)) ){
//		document.write('Stable; sYr = ' + sYr + 'and tYr = ' + tYr + 'while sMo = ' + sMo + ' and tMo = ' + tMo);
		document.write('Stable');
	}
}

/* END OF MISCELLANEOUS */

