// Copyright © 2008 ilfiron.com. All rights reserved.
// Version 1.0

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}
String.prototype.ltrim = function() {
	return this.replace(/^\s+/,"");
}
String.prototype.rtrim = function() {
	return this.replace(/\s+$/,"");
}

var img1 = new Image(130, 134);
img1.src  = "/images/ilfiron/company_n.png";
var img2 = new Image(130, 134);
img2.src  = "/images/ilfiron/company_o.png";
var img3 = new Image(133, 137);
img3.src  = "/images/ilfiron/products_n.png";
var img4 = new Image(137, 137);
img4.src  = "/images/ilfiron/products_o.png";
var img5 = new Image(130, 137);
img5.src  = "/images/ilfiron/flexidoc_n.png";
var img6 = new Image(130, 137);
img6.src  = "/images/ilfiron/flexidoc_o.png";
var img7 = new Image(133, 137);
img7.src  = "/images/ilfiron/consulting_n.png";
var img8 = new Image(133, 137);
img8.src  = "/images/ilfiron/consulting_o.png";
var img9 = new Image(133, 125);
img9.src  = "/images/ilfiron/business-solutions_n.png";
var img10 = new Image(133, 125);
img10.src  = "/images/ilfiron/business-solutions_o.png";

function element(elemId)
{
  var elem;
  elem = document.getElementById(elemId);
  if (elem == null || typeof(elem) == "undefined")
    return null;
  else
    return elem;
}

function switchimage(imgDocId, imgObjName)
{
  var o;
  o = element(imgDocId);
  if (o == null)
    return;
  o.src = eval(imgObjName + ".src");
}

function alertFocus(msg, element) {
  alert(msg);
  element.focus();
}
