function addLoadEvent(func) {    var oldonload = window.onload;    if (typeof window.onload != 'function') { window.onload = func; }    else {    	window.onload = function() {			if (oldonload) {				oldonload();            	}			func();        	}    	}	}addLoadEvent(function() {	var formObject	if ((formObject = document.getElementById('searchForm'))) {		var myCall = document.getElementById('byCallName')		var myKennel = document.getElementById('byKennelName')		var mySearch = document.getElementById('bySearch')				var callField = document.getElementById('callSelect')		var kennelField = document.getElementById('kennelSelect')		var searchField = document.getElementById('searchKennel')				var hideCall = document.getElementById('listByCall')		var hideKennel = document.getElementById('listByKennel')		var hideSearch = document.getElementById('divSearch')		var hideSubmit = document.getElementById('divSubmit')				hideCall.style.display = 'none'		hideKennel.style.display = 'none'		hideSearch.style.display = 'none'		hideSubmit.style.display = 'none'				myCall.choose1 = hideCall		myCall.choose2 = hideSubmit		myCall.hide1 = hideKennel		myCall.hide2 = hideSearch		myKennel.choose1 = hideKennel		myKennel.choose2 = hideSubmit		myKennel.hide1 = hideCall		myKennel.hide2 = hideSearch		mySearch.choose1 = hideSearch		mySearch.choose2 = hideSubmit		mySearch.hide1 = hideCall		mySearch.hide2 = hideKennel				myCall.onfocus = showField		myKennel.onfocus = showField		mySearch.onfocus = showField 		}	})function showField() {	this.choose1.style.display = 'block'	this.choose2.style.display = 'block'	this.hide1.style.display = 'none'	this.hide2.style.display = 'none'	}	/*	addLoadEvent(function() {	if (window.attachEvent) {		var sfEls = document.getElementById("navigation").getElementsByTagName("li");		for (var i=0; i<sfEls.length; i++) {			sfEls[i].onmouseover=function() {				this.className+=" sfhover";				}			sfEls[i].onmouseout=function() {				this.className=this.className.replace(new RegExp(" sfhover\\b"), "");				}			}		}	})addLoadEvent(function() { rotate() })function rotate() {	var c	var imgCount = window.imgCount	var slideDir = window.slideDir	var slideArray = window.slideArray	var textArray = window.textArray	var frameImages = new Array(imgCount)	var frameText = new Array(imgCount)	if ((document.getElementById('imgSlide'))) {		var imgSlide = document.getElementById('imgSlide')		var txtSlide = document.getElementById('txtSlide')		for(c=0; c<imgCount; c++) {			frameImages[c] = "images/" + slideDir + "/" + slideArray[c]			}		imgSlide.src = frameImages[window.startCount]		clearData(txtSlide)		txtSlide.appendChild(document.createTextNode(textArray[window.startCount]))		window.startCount = window.startCount + 1		if (window.startCount == imgCount) {window.startCount = 0}		setTimeout("rotate()",2 * 2000)		}	}function majorWindow(pagename,dir) {	var thisWin = window.open(opener,'popup','toolbar=no,location=no,scrollbars=yes,resizable=yes,width=840,height=620');	thisWin.appendChild(document.createTextNode("<!DOCTYPE html PUBLIC '-\/\/W3C\/\/DTD XHTML 1.0 Strict\/\/EN' 'http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd'>"));	thisWin.appendChild(document.createTextNode("<html lang='en' xmlns='http://www.w3.org\/1999\/xhtml'>"));	thisWin.appendChild(document.createTextNode("<head>"));	thisWin.appendChild(document.createTextNode("<title>" + pagename + "\'s pedigree<\/title>"));	thisWin.appendChild(document.createTextNode("<meta http-equiv='content-type' content='text\/html; charset=ISO-8859-1' \/>"));	thisWin.appendChild(document.createTextNode("<link rel='stylesheet' href='styles\/popup.css' type='text\/css' \/>"));	thisWin.appendChild(document.createTextNode("<script type='text\/JavaScript' src='opener.js'><\/script>"));	thisWin.appendChild(document.createTextNode("<\/head>"));	thisWin.appendChild(document.createTextNode("<body>"));	thisWin.appendChild(document.createTextNode("<div><img src='" + dir + "images\/poodles\/pedigrees\/" + pagename + "-ped.jpg' alt=\"" + pagename + "\'s pedigree\" \/><\/div>"));	thisWin.appendChild(document.createTextNode("<div onclick='window.close(); return false' class='windowClose'>Close this window<\/div>"));	thisWin.appendChild(document.createTextNode("<\/body>"));	thisWin.appendChild(document.createTextNode("<\/html>"));	}	addLoadEvent(function() {	var myLinks = document.getElementsByTagName('a');	var myWinLink, myWinURL, MyLink;	for (i in myLinks) {		if (isInteger(i)) {			MyLink = myLinks[i]			var linkClassObject = myLinks[i].getAttributeNode('class');			if (linkClassObject != null) {				myWinLink = linkClassObject.value;				var urlClassObject = myLinks[i].getAttributeNode('href');				if (urlClassObject != null) myWinURL = urlClassObject.value;				MyLink.item = winLinks(myWinLink,myWinURL);				MyLink.onclick = newWindow;				}			}		}		})*/function myWindow(myURL,myWidth,myHeight,myLeftPos,myTopMargin) {	this.myURL = myURL;	this.myWidth = myWidth;	this.myHeight = myHeight;	this.leftPos = myLeftPos;	this.topMargin = myTopMargin;	}function winLinks(myClass,myURL) {	var leftPos = 0;	if (screen) {		leftPos = screen.width-350		}	var myLinks = {}	myLinks['midWindow'] = new myWindow(myURL,450,500,0,0)	myLinks['vidWindow'] = new myWindow(myURL,550,420,0,0)	myLinks['miniWindow'] = new myWindow(myURL,320,500,leftPos,20)	return myLinks[myClass];	}	function newWindow() {	var myWin = this.item;	if ((myWin)) {		var thisWin;		thisWin = window.open(myWin.myURL,'popup','toolbar=no,location=no,scrollbars=yes,resizable=yes,width=' + myWin.myWidth + ',height=' + myWin.myHeight + ',left=' + myWin.leftPos + ',top=' + myWin.topMargin);		thisWin.focus();		return false;		}	}function clearData(myLabel) {	while (myLabel.childNodes[0]) {    		myLabel.removeChild(myLabel.childNodes[0]);    		}	}function isInteger(s) {	return (s.toString().search(/^-?[0-9]+$/) == 0);	}