// Common Java Script code



if (navigator.userAgent.indexOf("Mozilla/3.0") != -1) version = "n3";

else if (navigator.userAgent.indexOf("Mozilla/4.0") != -1) version = "n3";

else if (navigator.userAgent.indexOf("Mozilla/5.0") != -1) version = "n3";

else if (navigator.userAgent.indexOf("MSIE") != -1) version = "n2";

else if (navigator.userAgent.indexOf("Mozilla/2.0") != -1) version = "n2";

else version = "n2";



if (version == "n3") {

   Normal = new MakeImageArray(1)

   Over = new MakeImageArray(7)

   BarMsg = new MakeStringArray(7)



   Normal[1].src = "image/Ladder.gif";



   Over[1].src = "image/LadderCo.gif";

   Over[2].src = "image/LadderServ.gif";

   Over[3].src = "image/LadderSupp.gif";

   Over[4].src = "image/LadderMap.gif";

   Over[5].src = "image/LadderHome.gif";

   Over[6].src = "image/LadderLink.gif";

   Over[7].src = "image/LadderDown.gif";



   BarMsg[1] = "Company Information";

   BarMsg[2] = "PFM Integrators Services";

   BarMsg[3] = "Support Options";

   BarMsg[4] = "Web Site Map";

   BarMsg[5] = "Home Page";

   BarMsg[6] = "Useful Links";

   BarMsg[7] = "Download Links";

}

function MakeImageArray(n) {

   this.length = n

   for (var i = 1; i<=n; i++) {

  this[i] = new Image()

  }

  return this

}

function MakeStringArray(n) {

  this.length = n

  for (var i = 1; i<=n; i++) {

  this[i] = new String()

  }

  return this

}

function TagOver(index,ImgName) {

  document [ImgName].src = Over[index].src;

  window.status = BarMsg[index];

}

function TagOut(index,ImgName) {

  document [ImgName].src = Normal[1].src

  window.status = '';

}



//this function was added by Lee Michels on 11-28-2005 to supply a value

//to the realname used for the e-mail in Sihopes CGI script. I wanted

//to separate the first and last name out for easier storage in the 

//database so I had to combine them to fit into Sihopes parameters.

//Will need to add some validation stuff here.



function RealName(form) {

  var rname = form.FirstName.value + " " + form.LastName.value;

  form.realname.value = rname;

}



//The next few functions were taken from the Javascript Bible Gold Edition

//by Danny Goodman

//They are basic data validation tests that can be used with the form

//to make sure the user has entered data and/or entered it correctly.



// general purpose function to see if an input value has been entered at all



function isEmpty(inputStr) {

	if (inputStr == null || inputStr == "") {

		return true

	}

	return false

}	



// general purpose function to see if a suspected numeric input is 

// a positive integer

// This might be a good one for checking the phone number



function isPosInteger(inputVal) {

	inputStr = inputVal.toString()

	for (var i=0; i < inputStr.length; i++) {

		var oneChar = inputStr.charAt(i)

		if (oneChar < "0" || oneChar > "9"){

			return false

		}

	}

	return true

}



function setfocus() {

	

	form1.FirstName.focus();

}

function setfocus2() {

	

	form1.LoginName.focus();

}

	

	