function setFocus(){
	document.getElementById('custID').focus();
}

function AccountLogin(){
	
	custID=document.getElementById('custID');
	passwd=document.getElementById('passwd');
	//return false if no values present
	if(custID.value.length<1 || passwd.value.length<1){
		return false;
	}
	
	myForm=document.getElementById('frmLogin');	
	sel=document.getElementById('selAccount');
	//submit form as is
	if(sel.value=="client"){		
		myForm.submit();
		return true;
	}else{ //change to match this site login script names and action
		custID.name="txtUserName";		
		passwd.name="txtPass";
		
		myForm.action="verify.asp";
		myForm.submit();				
		return true;
	}
}

//writes random picture on home page
function loadRandomPictures(){	
	//find the number
	var backNum = Math.random()*21;
	//change image depending on number
	if(backNum <= 5) {
		document.write("<img src='/images/wideoutside.jpg' alt='Our Office'>");
	}else if(backNum<=10){
		document.write("<img src='/images/wideoffice.jpg' alt='Our Office'>");
	}else if(backNum<=15){
		document.write("<img src='/images/widespring2.jpg' alt='Our Office'>");
	}else if(backNum<=20){
		document.write("<img src='/images/widespring.jpg' alt='Our Office'>");
	}else{
		document.write("<img src='/images/topOutside.jpg' alt='Our Office'>");
	}
}