					function isEmailAddr(email)
					{
					var result = false
					var theStr = new String(email)
					var index = theStr.indexOf("@");
					if (index > 0)
					{
						var pindex = theStr.indexOf(".",index);
						if ((pindex > index+1) && (theStr.length > pindex+1))
						result = true;
					}
					return result;
					}

					function FormValidator(theForm)
					{

					if (theForm.email.value == "")
					{
						alert("Please enter a value for the \"email\" field.");
						theForm.email.focus();
						return (false);
					}

					if (!isEmailAddr(theForm.email.value))
					{
						alert("Please enter a complete email address in the form: yourname@yourdomain.com");
						theForm.email.focus();
						return (false);
					}
					   
					if (theForm.email.value.length < 3)
					{
						alert("Please enter at least 3 characters in the \"email\" field.");
						theForm.email.focus();
						return (false);
					}
					return (true);
					}

					function getPic() {
							var min = 1
							var max = 3
							var ran = Math.random() * (max - min) + min
							var num = Math.ceil(ran) // round number up..
							var strImg = "<img src='http://www.ratemybody.com/images/h_" + num + ".gif' width='205' height='34'><br />"
							document.write (strImg)
					}	

			
					function openWin(url,w,h)
					{
						var winh = (screen.height - h)/2;
						var winw = (screen.width - w)/2;
						popup=window.open(url,'pf','width='+w+',height='+h+',left='+winw+',top='+winh+',toolbar=no,location=no,status=no,scrollbars=no,resizable=yes')
					}
					//  End --> 