// AddIt JavaScripts
<!--
function swapMe(obj,over,out) { 
obj.style.background = "url("+over+")"; 
obj.onmouseout = function() { 
obj.style.background = "url("+out+")"; 
} 
}
//-->

<!-- Preload Rollover Images -->
<!-- Original:  Dan Christensen -->
<!-- Begin
  var aryImages = new Array(2);

  aryImages[0] = "/images/nav-over.gif";

  for (i=0; i < aryImages.length; i++) {
    var preload = new Image();
    preload.src = aryImages[i];
  }
//  End -->
<!-- Begin



//   ##############  SIMPLE  BROWSER SNIFFER

if (document.layers) {navigator.family = "nn4"}

if (document.all) {navigator.family = "ie4"}

if (window.navigator.userAgent.toLowerCase().match(/gecko/)) {navigator.family = "gecko"}

if (window.navigator.userAgent.toLowerCase().indexOf('opera') != -1) {navigator.family	= 'opera';}

toplevel="4";



function riseup (box) {

toplevel++;

if (navigator.family == "ie4")

	{document.all[box].style.zIndex = toplevel;}

if (navigator.family == "opera" || navigator.family == "gecko")

 	{document.getElementById(box).style.zIndex = toplevel;}

}
// End -->

//  #################  THIS FIXES GECKO DIV PLACEMENT

if (navigator.family == "gecko"){

for (x=1;x<6;x++) 

	{document.getElementById("tab"+x).style.left = 120; }

}

//  End -->

function doCheckForm(oForm){
				if (oForm.name.value==""){
					alert("Please enter your name!");
					oForm.name.focus();
					return false;
				}

				if (oForm.address1.value==""){
					alert("Please enter your address!");
					oForm.address1.focus();
					return false;
				}

				if (oForm.city.value==""){
					alert("Please enter your city!");
					oForm.city.focus();
					return false;
				}

				if (oForm.country.value==""){
					alert("Please select country!");
					oForm.country.focus();
					return false;
				}

				if (oForm.state.value==""){
					alert("Please select state!");
					oForm.state.focus();
					return false;
				}

				if (oForm.zip.value==""){
					alert("Please enter ZIP-Code");
					oForm.state.focus();
					return false;
				}

				var reg1 = /^\+{0,1}\d{7,20}$/;
				if (oForm.phone.value.match(reg1) == null){
					alert("Please enter correct phone number! Only digits and '+' symbol at the begining allowed");
					oForm.phone.focus();
					return false;
				}

				if (!checkEmail(oForm.email.value)){
					alert("Please enter correct email address!");
					oForm.state.focus();
					return false;
				}

				if (oForm.where.value == ""){
					alert("Where did you hear about us?");
					oForm.where.focus();
					return false;
				}

				oForm.action_name.value = "send";
				 document.become_an_agent.submit();
				return true;
			}

			function checkEmail(email)	{
				var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
				if (! email.match(re)) 	return (false);
				return(true);
			}