					function swAd(adno, adval) {
						//
						//

						switch (adno) {
							case 1:
								objAd1 = document.getElementById("ad1")
								objAd1.style.backgroundColor = "#ffffff"
									objAd1.style.cursor = "pointer"
								if (adval == 1) {
									objAd1.style.backgroundColor = "#E9ECF3"
								}
								break

							case 2:
								objAd2 = document.getElementById("ad2")
								objAd2.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd2.style.backgroundColor = "#E9ECF3"
								}
								break

							case 3:
								objAd3 = document.getElementById("ad3")
								objAd3.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd3.style.backgroundColor = "#E9ECF3"
								}
								break

							case 4:
								objAd4 = document.getElementById("ad4")
								objAd4.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd4.style.backgroundColor = "#E9ECF3"
								}
								break

							case 5:
								objAd5 = document.getElementById("ad5")
								objAd5.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd5.style.backgroundColor = "#E9ECF3"
								}
								break

							case 6:
								objAd6 = document.getElementById("ad6")
								objAd6.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd6.style.backgroundColor = "#E9ECF3"
								}
								break

							case 7:
								objAd7 = document.getElementById("ad7")
								objAd7.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd7.style.backgroundColor = "#E9ECF3"
								}
								break

							case 8:
								objAd8 = document.getElementById("ad8")
								objAd8.style.backgroundColor = "#ffffff"
								if (adval == 1) {
									objAd8.style.backgroundColor = "#E9ECF3"
								}
								break
						}
					}


					function goTo(linkadr) {
						location = linkadr
					}


					function isNumber(inputVal) {
						//
						//	General purpose function to see if "inputVal" is an acceptable number.
						
						var oneDecimal = false
						var 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 validEmail(email) {
						var invalidChars = " /:,;"
						
						if (email == "") {
							return false
						}
						
						for (var i = 0; i < invalidChars.length; i++) {
							badChar = invalidChars.charAt(i)
							if (email.indexOf(badChar, 0) > -1) {
								return false
							}
						}
						
						atPos = email.indexOf("@", 1)
						if (atPos == -1) {
							return false
						}
						
						if (email.indexOf("@", atPos+1) > -1) {
							return false
						}
						
						periodPos = email.indexOf(".", atPos)
						if (periodPos == -1) {
							return false
						}
						if (periodPos + 3 > email.length) {
							return false
						}
						return true
					}

				
				var defWindow = null

				var is_agent				=  navigator.userAgent.toLowerCase()
				var is_version	= navigator.appVersion


				//	Which broswer and which release of a browser is the user using?

				function NewWindow(fepTest)	{
					defWindow = window.open( fepTest, "fepWindow", "menubar=yes, toolbars=yes, location=yes, scrollbars=yes, resizable=yes, status=yes, width=800px, height=600px")

					// Bring new window to the front.
					//
					defWindow.focus()
				}


				function closeWdw() {
						defWindow.window.close()
				}


				function cmdReturn() {
						location.href	=	"http://www.NotariesUnlimited.com?c=<%=c%>"
				}

