<!--
	function isDecimal(obj) {
		var iChars = ".0123456789";
		outText = obj.value
		for (var i = 0; i < obj.value.length; i++) {
			if (iChars.indexOf(obj.value.charAt(i)) == -1) {
				outText = outText.replace(obj.value.charAt(i),"");
			}
		}
		obj.value = outText;
	}

	function isInt(obj) {
		var iChars = "0123456789";
		outText = obj.value
		for (var i = 0; i < obj.value.length; i++) {
			if (iChars.indexOf(obj.value.charAt(i)) == -1) {
				outText = outText.replace(obj.value.charAt(i),"");
			}
		}
		obj.value = outText;
	}

	function checkMaxChars(object,MaxLen) {
		return (object.value.length <= MaxLen);		
	}

	function popUp(URL) {
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=500');");
	}

	function CheckEmail(strData) {
		if (strData == "") {
			return false;
		} else {
			var posAt = strData.indexOf("@")
			var strName = strData.substring(0, posAt)
			var strDomain = strData.substring(posAt+1, strData.length)
			var dotPos = strDomain.indexOf(".")
			var strExt = strDomain.substring(dotPos+1,strDomain.length)
			var strDomain = strDomain.substring(0,dotPos)
			if (strName=="" || strDomain=="" || strExt=="") {
				return false;
			} else {
				return true;
			}
		}
	}
	
	// This is used in the products sections of the Pearl Drops website
	function selectProduct() {
		//alert(document.getElementById('cmbProducts').value)
		if (document.getElementById('cmbProducts').value != '') {
			
			//window.open(document.getElementById('cmbProducts').value);
			window.top.location = document.getElementById('cmbProducts').value;
		}
	}
	
	// This is used in the products sections of the Pearl Drops website
	function changeProductSubSection(num) {
		for (k=0; k<btnArray.length; k++) {
			if (btnArray[k] == num) {
				document.getElementById('dv_'+btnArray[k]+'_on').style.display = 'block'
				document.getElementById('dv_'+btnArray[k]+'_off').style.display = 'none'
				document.getElementById('content_'+btnArray[k]).style.display = 'block'
			} else {
				document.getElementById('dv_'+btnArray[k]+'_on').style.display = 'none'
				document.getElementById('dv_'+btnArray[k]+'_off').style.display = 'block'
				document.getElementById('content_'+btnArray[k]).style.display = 'none'
			}
		}
		stopFlash();
	}

	var movieName = "";
	var movieName2 = "";

	function thisMovie(movieName) {
		// IE and Netscape refer to the movie object differently.
		// This function returns the appropriate syntax depending on the browser.
		if (navigator.appName.indexOf ("Microsoft") !=-1) {
			return window[movieName]
		} else {
			return document[movieName]
		}
	}
	
	function stopFlash() {
		if (movieName == "flash_video") {
			if (movieIsLoaded(thisMovie(movieName))) {
				thisMovie(movieName).play();
			}
		}
		if (movieName2 == "flash_video2") {
			if (movieIsLoaded(thisMovie(movieName2))) {
				thisMovie(movieName2).play();
			}
		}
	}
	
	function movieIsLoaded (theMovie) {
		// First make sure the movie's defined.
		if (typeof(theMovie) != "undefined") {
			// If it is, check how much of it is loaded.
			return theMovie.PercentLoaded() == 100;
		} else {
			// If the movie isn't defined, it's not loaded.
			return false;
		}
	}
-->