This document was uploaded by user and they confirmed that they have the permission to share
it. If you are author or own the copyright of this book, please report to us by using this DMCA
report form. Report DMCA
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> » Dish TV - India's first family entertainment DTH <meta name="description" content="India's first family entertainment DTH. Welcome to the next level of entertainment." /> <style type="text/css"> <style type="text/css"> <style> .MyLink{color:#073f6b;textdecoration:none;} .MyLink:hover{color:#e35f13;textdecoration:none;} .style35 {color: #e35f13} .rohit1 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; height: 13px; width: 150px; } .style37 {color: #000000} <script language="javascript"> function clear_all() { document.Form1.password.value = ''; } function back_space() { var pass = document.Form1.password.value var back_s = (pass.substring(0,pass.length - 1 )); document.Form1.password.value = back_s } function key_press(a) { var pass = document.Form1.password.value document.Form1.password.value = pass + a }
function signup_validate() { //validates firstname var valid = "1234567890"; var ok = "yes"; var temp,j; j = document.Form1.username.value.length; if (document.Form1.username.value =="") { alert("Please enter your User Name... "); document.Form1.username.focus(); return false; } if (document.Form1.username.value.indexOf(" ")==0) { alert("Space not allowed as first character... "); document.Form1.username.focus(); return false; } for (var i=0; i<document.Form1.username.value.length; i++) { temp = "" + document.Form1.username.value.substring(i, i+1); if (valid.indexOf(temp) == "-1") ok = "no"; } if (ok == "no") { alert("Invalid entry! Kindly check for any invalid characters... document.Form1.username.focus(); document.Form1.username.select(); return false; }
");
//validates password var valid = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_.@#$!%^&*()-?"; var ok = "yes"; var temp,j; j = document.Form1.password.value.length; if (document.Form1.password.value =="") { alert("Please enter your Password... "); document.Form1.password.focus(); return false; } if (document.Form1.password.value.indexOf(" ")==0) { alert("Space not allowed as first character... "); document.Form1.password.focus(); return false; } for (var i=0; i<document.Form1.password.value.length; i++) { temp = "" + document.Form1.password.value.substring(i, i+1); if (valid.indexOf(temp) == "-1") ok = "no"; } if (ok == "no") {
alert("Invalid entry! Kindly check for any invalid characters... document.Form1.password.focus(); document.Form1.password.select(); return false; }