function stoperror() {return true} window.onerror=stoperror



//=================================
// random image rotator
NumberOfImagesToRotate = 9;

FirstPart1 = '<img src="img/hd/';
FirstPart = '<img src="../img/hd/';
SecondPart = '.jpg" width="765" height="80" border="0" alt="custom web development services">'

function printImage() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart + r + SecondPart);
}

function printImage1() {
var r = Math.ceil(Math.random() * NumberOfImagesToRotate);
document.write(FirstPart1 + r + SecondPart);
}
//loc = document.location.href;
//ref = document.referrer;
//===================================


 // Put the cursor in the first text field and select contents, if any
function initializeUI(f,e) {
  	document[f][e].focus(); //alert(document[f][e]);
	//document[f][e].select();
}

//spawn window function
function spawnWindow(theURL,winName,properties) { 
  window.open(theURL,winName,properties);
}

//form validation
function ValidateForm(){
	var emailID=document.inputForm.email	
	if ((emailID.value==null)||(emailID.value=="")||(emailID.value=="your email address here")||(emailID.value.indexOf("@")==-1)||(emailID.value.indexOf(".")==-1)){
		alert("Please enter a valid email address.")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
 
function focusNClearInput(inputObject) {
 var hasBeenFocused = inputObject.getAttribute("hasBeenFocused") != null;    
 if (!hasBeenFocused) {
     inputObject.setAttribute("hasBeenFocused", "true");
     inputObject.style.color = "#000000";
     inputObject.value = "";
     var thisForm = inputObject.form;
     for (ii = 0;  ii < thisForm.elements.length; ii++) {
         if (thisForm.elements[ii].type == "submit"){
             thisForm.elements[ii].disabled = false;
         }
     }	
 }                                
}
 
 
