/* cached (type 2) @ Tue, 14 Feb 2012 22:27:10 GMT, sid=12  */
			//JS object: objectid=21353554 datasource=nwalesweekly method=javascript_default
document.write('\r\n\t\t\t<script type=\"text/javascript\">\r\n\t\t\t//<![CDATA[\r\n\t\t\tfunction validateUpload()\r\n\t\t\t{\tvar errorMessage = \"There were problems with your form submission. Please rectify these problems:\\n\"\r\n\t\t\t\tvar b_error = 0;\r\n\t\t\t\tvar elError;\r\n\t\t\t\tfunction _sanitize(val) \r\n\t\t\t\t{\t\r\n\t\t\t\t\t{\treturn val.replace(/(^[\\s\\t]*)|([\\s\\t]*$)/g, \"\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\nif (_sanitize(this.document.forms.w_upl_21353554.RECAPTCHA.value).length && _sanitize(this.document.forms.w_upl_21353554.RECAPTCHA.value) != \'true\'))\n{\terrorMessage = errorMessage + \'Please enter the validation string.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.RECAPTCHA.focus();\n\t}\n\tb_error = 1;\n} //reqd:true \nif (!/^[a-zA-Z0-9_\\.\\+-]+@([a-zA-Z0-9_-]+\\.)+[a-zA-Z]{2,6}$/.test(_sanitize(this.document.forms.w_upl_21353554.email.value)))\n{\terrorMessage = errorMessage + \'Please enter a valid email address.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.email.focus();\n\t}\n\tb_error = 1;\n} \nif (_sanitize(this.document.forms.w_upl_21353554.name.value).length < 1)\n{\terrorMessage = errorMessage + \'Please enter your name.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.name.focus();\n\t}\n\tb_error = 1;\n} //reqd:1 \nif (!/^[0-9\\-\\(\\) ]*[0-9 ]{4,15}$/.test(_sanitize(this.document.forms.w_upl_21353554.phone.value)))\n{\terrorMessage = errorMessage + \'Please enter a valid UK phone number.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.phone.focus();\n\t}\n\tb_error = 1;\n} \nif (!this.document.forms.w_upl_21353554.ts_cs.checked)\n{\terrorMessage = errorMessage + \'Please confirm your acceptance of our terms.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.ts_cs.focus();\n\t}\n\tb_error = 1;\n} \nif (_sanitize(this.document.forms.w_upl_21353554.description.value).length < 5)\n{\terrorMessage = errorMessage + \'Please enter your story.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.description.focus();\n\t}\n\tb_error = 1;\n} //reqd:false \nif (!b_error && _sanitize(this.document.forms.w_upl_21353554.file.value).length && !/^(file:\\/\\/)?([a-zA-Z]:)?[\\/\\\\a-zA-Z0-9_\\. &~-]*[a-zA-Z0-9_\\. &~-]+\\.[a-zA-Z0-9]+$/.test(_sanitize(this.document.forms.w_upl_21353554.file.value)))\n{\terrorMessage = errorMessage + \'Please use the browse button to select your picture.\\n\';\n\n\tif (!b_error)\n\t{\twindow.document.forms.w_upl_21353554.file.focus();\n\t}\n\tb_error = 1;\n} \r\n\t\t\t\t\tif (b_error) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\talert(errorMessage);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t} else {\r\n\t\t\tformw_upl_21353554isValid(); \r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t//]]>\r\n\t\t\t</script>\r\n\t\t\r\n\t<script type=\"text/javascript\" src=\"http://images.icnetwork.co.uk/js/email_valid.js\"></script>\r\n\t<script type=\"text/javascript\">\r\n\t//<![CDATA[\r\n\t\t/* If the form is valid... */\r\n\t\tfunction formw_upl_21353554isValid()\r\n\t\t{\tvar aForm = document.forms.w_upl_21353554;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\taForm.submit.value = \'Uploading, please wait...\';\r\n\t\t\taForm.submit.disabled = true;\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\tPrevent overfilling textareas\r\n\t\t*/\r\n\t\tfunction limitText(limitField, limitCountEl, limitNum)\r\n\t\t{\tif (limitField.value.length > limitNum)\r\n\t\t\t{\tlimitField.value = limitField.value.substring(0, limitNum);\r\n\t\t\t} else\r\n\t\t\t{\t//update msg\r\n\t\t\t\tdocument.getElementById(limitCountEl).innerHTML = limitNum + \' characters max - (\' + (limitNum - limitField.value.length) + \' left)\';\r\n\t\t\t}\r\n\t\t}\r\n\t//]]>\r\n\t</script>\r\n\r\n\t\t<div class=\"your-paper-form w-upload-user-top w-upl-story\">\r\n\t\t\t<form\r\n\t\t\t\tname=\"w_upl_21353554\"\r\n\t\t\t\tclass=\"w-upload-user-f competitionForm\"\r\n\t\t\t\taction=\"http://www.northwalesweeklynews.co.uk/page.cfm?doupload=1&amp;siteid=55243&amp;objectid=21353554&amp;method=javascript_default\"\r\n\t\t\t\tenctype=\"multipart/form-data\"\r\n\t\t\t\tmethod=\"post\"\r\n\t\t\t\tonsubmit=\"return validateUpload();\">\r\n\t\t\t\t<h4>Post a story</h4>\r\n\t\t\t\t<p><label for=\"name\">Your name</label><em>&nbsp;(*mandatory)</em></p>\r\n\t\t\t\t<p><input class=\"tab_textbox\" name=\"name\" size=\"1\" style=\"width: 50%;\" value=\"\" type=\"text\" /></p>\r\n\t\t\t\t<p><label for=\"email\">Your email</label><em>&nbsp;(*mandatory)</em></p>\r\n\t\t\t\t<p><input class=\"tab_textbox\" name=\"email\" size=\"1\" style=\"width: 50%;\" value=\"\" type=\"text\" /></p>\r\n\t\t\t\t<p><label for=\"phone\">Your phone number</label><em>&nbsp;(*mandatory)</em></p>\r\n\t\t\t\t<p><input class=\"tab_textbox\" name=\"phone\" size=\"1\" style=\"width: 50%;\" value=\"\" type=\"text\" /></p>\r\n\t\r\n\t\t\t\t<p><label>Headline</label></p>\r\n\t\t\t\t\r\n\t\t\t\t<p><textarea \r\n\t\t\t\t\t\tclass=\"tab_textbox\" \r\n\t\t\t\t\t\tname=\"title\" \r\n\t\t\t\t\t\trows=\"1\" \r\n\t\t\t\t\t\tcols=\"47\" \r\n\t\t\t\t\t\tonKeyDown=\"limitText(this.form.title,\'title_info\',50);\" \r\n\t\t\t\t\t\tonKeyUp=\"limitText(this.form.title,\'title_info\',50);\"></textarea>\r\n\t\t\t\t</p>\t\r\n\t\t\t\t<p class=\"info-text\" id=\"title_info\">50 characters max - (50 left)</p>\r\n\t\t\t\t\r\n\t\t\t\t<p><label>Add a picture?<em>&nbsp;(optional)</em></label></p>\r\n\t\t\t\t<p><input id=\"id_photo_file\" name=\"file\" class=\"vImageUploadField\" type=\"file\"></p>\r\n\t\r\n\t\t\t\t<p class=\"info-text\">Max image size 30000kb</p>\r\n\t\t\r\n\t\t\t\t<p><label>Your story</label></p>  \r\n\t\t\t\t<p><textarea class=\"tab_textbox\" name=\"description\" rows=\"35\" cols=\"47\" ></textarea></p> \r\n\t\t\r\n\t\t<script language=\"javascript\" type=\"text/javascript\">\r\n\t\t\t<!--//\t\t\r\n\t\t\t\tlimitText(document.forms.w_upl_21353554.title,\'title_info\',50);\r\n\t\t\t//-->\r\n\t\t</script>\r\n\t\t\r\n\t\r\n\t\t\t\t<p><label for=\"ts_cs\">Confirmation</label></p>\r\n\t\t\t\t<p class=\"compLongQ\"><input class=\"tab_cb\" name=\"ts_cs\" value=\"1\" type=\"checkbox\"  />&nbsp;Ticking this box confirms that you hold the copyright in your story/picture and by submitting it you give us licence to publish it on our websites. Also, that you have the consent of any person(s) portrayed in your story/picture to submit it to us.\r\n\t\t\t\t</p>\r\n\t\t\t\n\t<script type=\"text/javascript\">\n\t//<![CDATA[\n\t\tvar RecaptchaOptions = {\n\t\t   theme : \'red\',\n\t\t   tabindex : 0\n\t\t};\n\t//]]>\n\t</script>\n\t<script type=\"text/javascript\" src=\"http://api.recaptcha.net/challenge?k=6LfHfb8SAAAAABhX_RbOlePi0UK2Dy2ld7yZmyjh\">\n\t</script>\n\t<noscript>\n\t\t<iframe src=\"http://api.recaptcha.net/noscript?k=6LfHfb8SAAAAABhX_RbOlePi0UK2Dy2ld7yZmyjh\"\n\t\t\theight=\"300\" width=\"500\" frameborder=\"0\"></iframe><br>\n\t\t<textarea name=\"recaptcha_challenge_field\" rows=\"3\" cols=\"40\"></textarea>\n\t\t<input type=\"hidden\" name=\"recaptcha_response_field\" value=\"manual_challenge\">\n\t</noscript>\n\t\r\n\t\t\t\t<p class=\"w-upl-sub\"><input value=\"Submit your story/picture\" type=\"submit\" name=\"submit\" /></p>\r\n\t\t\t\t\r\n\t\t\t\t<p></p>\r\n\t\t\t\t<h4>PLEASE NOTE:</h4>\r\n\t\t<p class=\"info-text\">Submissions may be edited before publication. Inappropriate text, images or video will be rejected without notice. Submission does not guarantee publication.</p>\r\n\t\t<p class=\"info-text\">You retain complete ownership and copyright of your text, images and video, but by submitting them you agree that we may feature them on our websites and/or newspapers as long as we provide you with a credit.</p>\r\n\t\t<p class=\"info-text\">We may, at our discretion, crop and/or resize images to fit the format of our web page or newspaper.</p>\r\n\t\t<p class=\"info-text\">Please read our <a href=\"/terms-and-conditions/\">terms and conditions</a>.</p>\r\n\t\t\t</form>\r\n\t\t</div>\r\n\t');
