We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
E: 14/1 - Win a DS Lite
hbk2006
Posts: 579 Forumite
Click Here!!
Don’t miss this chance to win an amazing Nintendo DS Lite and test your surgical skills by playing Trauma Center: Under the Knife, the game that puts the scalpel in your hands.
You play a young doctor carrying out operations and fighting medical terrorism. Do you have the cool head and steady hand it takes to succeed?
Discover a whole new way of gaming with the Nintendo DS’s sensitive touchscreen, which can be operated using either your fingertips or a stylus. The console’s two ultra-bright screens and virtual surround sound will allow you to immerse yourself in your favourite games like never before.
The 3-inch wide LCD screens are capable of displaying a stunning 260,000 colours with a 256 by 192 pixel resolution.
Play with friends in the same room or on the other side of the world using the built-in Wi Fi connection. You can even use the Nintendo DS to chat, browse the web, or check your email.
With over 350 games now available, there’s something for everyone. In addition to the latest titles, the console is equally compatible with Game Boy Advance games.
<script language="javascript" type="text/javascript"> 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 inValidCharSet(str,charset) !! var result = true; // Note: doesn't use regular expressions to avoid early Mac browser bugs for (var i=0;i<str.length;i++) if (charset.indexOf(str.substr(i,1))<0) !! result = false; break; } return result; } function validEmail(formField,fieldLabel,required) !! var result = true; if (required && !validRequired(formField,fieldLabel)) result = false; if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) ) !! alert("Please enter a complete email address in the form: yourname@yourdomain.com"); formField.focus(); result = false; } return result; } function validText(formField,fieldLabel) !! if (formField.value == "") !! alert('Please fill in the text box "' + fieldLabel +'"'); formField.focus(); return (false); } return (true); } function validRadio(formField,fieldLabel) !! var result = true; var radioSelected; for (var i=0; i<formField.length; i++)!! if (formField.checked) !! radioSelected = formField.value } } if (!radioSelected)!! alert('Please select an option for "' + fieldLabel +'".'); //formField.focus(); result = false; } return result; } --- function validateForm(theForm) !! // Form Validation // Start
> if (!validText(theForm.comp_form_name,"Name")) return false; if (!validEmail(theForm.comp_form_email,"Email address")) return false; if (!validText(theForm.comp_form_age,"Age")) return false; if (!validRadio(theForm.comp_form_answer,"Answer")) return false; if (!validRadio(theForm.comp_form_gender,"Gender")) return false; // <
End return true; } </script> <form action="/competitions/nintendodslite.cfm" name="competitionform" onsubmit="return validateForm(this)" method="post"> What sport is associated with an elbow ailment?
Answer - Tennis
</form>
Don’t miss this chance to win an amazing Nintendo DS Lite and test your surgical skills by playing Trauma Center: Under the Knife, the game that puts the scalpel in your hands.
You play a young doctor carrying out operations and fighting medical terrorism. Do you have the cool head and steady hand it takes to succeed?
Discover a whole new way of gaming with the Nintendo DS’s sensitive touchscreen, which can be operated using either your fingertips or a stylus. The console’s two ultra-bright screens and virtual surround sound will allow you to immerse yourself in your favourite games like never before.
The 3-inch wide LCD screens are capable of displaying a stunning 260,000 colours with a 256 by 192 pixel resolution.
Play with friends in the same room or on the other side of the world using the built-in Wi Fi connection. You can even use the Nintendo DS to chat, browse the web, or check your email.
With over 350 games now available, there’s something for everyone. In addition to the latest titles, the console is equally compatible with Game Boy Advance games.
<script language="javascript" type="text/javascript"> 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 inValidCharSet(str,charset) !! var result = true; // Note: doesn't use regular expressions to avoid early Mac browser bugs for (var i=0;i<str.length;i++) if (charset.indexOf(str.substr(i,1))<0) !! result = false; break; } return result; } function validEmail(formField,fieldLabel,required) !! var result = true; if (required && !validRequired(formField,fieldLabel)) result = false; if (result && ((formField.value.length < 3) || !isEmailAddr(formField.value)) ) !! alert("Please enter a complete email address in the form: yourname@yourdomain.com"); formField.focus(); result = false; } return result; } function validText(formField,fieldLabel) !! if (formField.value == "") !! alert('Please fill in the text box "' + fieldLabel +'"'); formField.focus(); return (false); } return (true); } function validRadio(formField,fieldLabel) !! var result = true; var radioSelected; for (var i=0; i<formField.length; i++)!! if (formField.checked) !! radioSelected = formField.value } } if (!radioSelected)!! alert('Please select an option for "' + fieldLabel +'".'); //formField.focus(); result = false; } return result; } --- function validateForm(theForm) !! // Form Validation // Start
> if (!validText(theForm.comp_form_name,"Name")) return false; if (!validEmail(theForm.comp_form_email,"Email address")) return false; if (!validText(theForm.comp_form_age,"Age")) return false; if (!validRadio(theForm.comp_form_answer,"Answer")) return false; if (!validRadio(theForm.comp_form_gender,"Gender")) return false; // <
End return true; } </script> <form action="/competitions/nintendodslite.cfm" name="competitionform" onsubmit="return validateForm(this)" method="post"> What sport is associated with an elbow ailment?
Answer - Tennis
</form>
0
Comments
-
-
:beer: Thanks hbk2006, that's three comps of yours I've just entered:)
Somehow I missed this first time round0 -
thanks i must have missed it first time roundto be updated:;)0
-
Thanks I missed it before as well0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.6K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455.1K Spending & Discounts
- 246.7K Work, Benefits & Business
- 603.2K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.8K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards