Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- function results(){
- if (document.form.checkm.checked == true){
- x = ", you are a male"
- }
- if (document.form.checkf.checked == true){
- x = ", you are a female"
- }
- if (document.form.checkf.checked == true && document.form.checkm.checked == true){
- confirm("You may only select 1 of the genders. Stupid Tranny....")
- }
- else{
- if (document.form.checkf.checked != true && document.form.checkm.checked !=true){
- alert("You can't have no gender.... jeezz... check your birth certificate")
- }
- else{
- if (document.form.select.value == "null"{
- alert("Please select a location")
- }
- else{
- name = document.form.text1.value
- msg1 = "Have a nice day "
- msg2 = "Results: "
- var weather = ", how is the weather in "
- var qmark = "?"
- whereulive = document.form.select.value
- span1 = document.getElementById("span1")
- span1.innerHTML = msg2 + msg1 + name + x + weather + whereulive + qmark
- }
- }
- }
Add Comment
Please, Sign In to add comment