کد نشان دهنده مدت عمر اشخاص
<!-- <br>THREE STEPS TO INSTALL AGE CALCULATOR: 1. Copy the coding into the HEAD <br>of your HTML document 2. Add the onLoad event handler into the BODY tag <br>3. Put the last coding into the BODY of your HTML document --> <br><!-- STEP ONE: Paste this code into the HEAD of your HTML document <br>--> <br><HEAD> <br>< LANGUAGE="Java"> <br><!-- Original: Dev Pragad (devpragad@yahoo.com) --> <br><!-- Web Site: http://www.geocities.com/devpragad --> <br><!-- This and many more are available free online at --> <br><!-- The Java Source!! http://java.internet.com --> <br><!-- Begin <br>function start() { <br>document.form1.day.value = ""; <br>document.form1.month.value = ""; <br>document.form1.year.value = ""; <br>document.form1.age.value = ""; <br>document.form1.months.value = ""; <br>document.form1.weeks.value = ""; <br>document.form1.answer.value = ""; <br>document.form1.hours.value = ""; <br>document.form1.min.value = ""; <br>document.form1.sec.value = ""; <br>document.form1.bday.value = ""; <br>document.form1.milli.value = ""; <br>} <br>function run() { <br>var ap; <br>dd = document.form1.day.value; <br>mm = document.form1.month.value; <br>yy = document.form1.year.value; <br>with(document.form1) { <br>ap = parseInt(ampm.selectedIndex); <br>hr = parseInt(hrs.value); <br>if(hr <= 0 && hr >= 13) { <br>ap = null; <br>alert("asdf") } <br>} <br>main="valid"; <br>if ((mm < 1) || (mm > 12) || (dd < 1) || (dd > 31) || (yy <br>< 1) ||(mm == "") || (dd == "") || (yy == "")) <br>main = "Invalid"; <br>else if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && <br>(dd > 30)) <br>main = "Invalid"; <br>else if (mm == 2) { <br>if (dd > 29) <br>main = "Invalid"; <br>else if((dd > 28) && (!lyear(yy))) <br>main="Invalid"; <br>} <br>else <br>if((yy > 9999)||(yy < 0)) <br>main = "Invalid"; <br>else <br>main = main; <br>if(main == "valid") { <br>function leapyear(a) { <br>if(((a % 4 == 0) && (a % 100 != 0)) || (a % 400 == 0)) <br>return true; <br>else return false; <br>} <br>days = new Date(); <br>gdate = days.getDate(); <br>gmonth = days.getMonth(); <br>gyear = days.getYear(); <br>age = gyear - yy; <br>if((mm == (gmonth + 1)) && (dd <= parseInt(gdate))) { <br>age = age; <br>} <br>else { <br>if(mm <= (gmonth)) { <br>age = age; <br>} <br>else { <br>age = age - 1; } <br>} <br>if(age == 0) <br>age = age; <br>document.form1.age.value=" You are " + age+ " years old & "; <br>if(mm <= (gmonth + 1)) <br>age = age - 1; <br>if((mm == (gmonth + 1)) && (dd > parseInt(gdate))) age = age <br>+ 1; <br>var m; <br>var n; <br>if (mm == 12) { n = 31 - dd; } <br>if (mm == 11) { n = 61 - dd; } if (mm == 10) { n = 92 - dd; } if (mm == <br>9) { n = 122 - dd; } if (mm == 8) { n = 153 - dd; } if (mm == 7) { n = <br>184 - dd; } if (mm == 6) { n = 214 - dd; } if (mm == 5) { n = 245 - dd; <br>} if (mm == 4) { n = 275 - dd; } if (mm == 3) { n = 306 - dd; } <br>if (mm == 2) { n = 334 - dd; if(leapyear(yy)) n = n + 1; } <br>if (mm == 1) { n = 365 - dd; if (leapyear(yy)) n = n + 1; } <br>if (gmonth == 1) m = 31; <br>if (gmonth == 2) { m = 59; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 3) { m = 90; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 4) { m = 120; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 5) { m = 151; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 6) { m = 181; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 7) { m = 212; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 8) { m = 243; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 9) { m = 273; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 10) { m = 304; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 11) { m = 334; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 12) { m = 365; if (leapyear(gyear)) m = m + 1; } <br>totdays = (parseInt(age) * 365); <br>totdays += age / 4; <br>totdays = parseInt(totdays) + gdate + m + n; <br>document.form1.answer.value = "" + totdays +" days "; <br>months = age * 12; <br>months += 12 - parseInt(mm); <br>months += gmonth; <br>document.form1.months.value = months + " Months"; <br>if (gmonth == 1) p = 31 + gdate; <br>if (gmonth == 2) { p = 59 + gdate; if (leapyear(gyear)) m = m + 1; } <br>if (gmonth == 3) { p = 90 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 4) { p = 120 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 5) { p = 151 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 6) { p = 181 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 7) { p = 212 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 8) { p = 243 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 9) { p = 273 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 10) { p = 304 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 11) { p = 334 + gdate; if (leapyear(gyear)) p = p + 1; } <br>if (gmonth == 12) { p = 365 + gdate; if (leapyear(gyear)) p = p + 1; } <br>weeks = totdays / 7; <br>weeks += " weeks"; <br>weeks = parseInt(weeks); <br>document.form1.weeks.value = weeks + " Weeks"; <br>var time = new Date(); <br>ghour = time.getHours(); <br>gmin = time.getMinutes(); <br>gsec = time.getSeconds(); <br>hour = ((age * 365) + n + p) * 24; <br>hour += (parseInt(age / 4) * 24); <br>if(ap == 0) <br>hour = hour - hr; <br>else { <br>if(ap == 1) { <br>hour = hour - (11 + hr) } <br>} <br>document.form1.hours.value = hour + " Hours"; <br>var min; <br>min = (hour * 60) + gmin; <br>document.form1.min.value = min + " Minutes"; <br>sec = (min * 60) + gsec; <br>document.form1.sec.value = sec + " Seconds"; <br>var millisec; <br>var gmil; <br>gmil = days.getMilliseconds(); <br>millisec = (sec * 1000) + gmil; <br>document.form1.milli.value = millisec + " Milliseconds"; <br>mm = mm - 1; <br>var r; <br>if(mm == 0) r = 1; <br>if(mm == 1) r = 31; <br>if(mm == 2) { r = 59; if (leapyear(gyear)) m = m + 1; } <br>if(mm == 3) { r = 90; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 4) { r = 120; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 5) { r = 151; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 6) { r = 181; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 7) { r = 212; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 8) { r = 243; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 9) { r = 273; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 10) { r = 304; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 11) { r = 334; if (leapyear(gyear)) r = r + 1; } <br>if(mm == 12) { r = 365; if (leapyear(gyear)) r = r + 1; } <br>mm = mm + 1; <br>r = parseInt(r) + parseInt(dd); <br>if( mm > (gmonth + 1)) { <br>bday = r - m - gdate; <br>} <br>else { <br>if(mm == (gmonth + 1) && (gdate < dd)) { <br>bday = (r - m - gdate); <br>} <br>else { <br>if((leapyear(gyear)) && ((mm > 2) && (dd < 29))) <br>{ <br>a = 366; <br>} <br>else { <br>a = 365; } <br>bday = a + (r - m - gdate); } <br>} <br>nhour = 24-parseInt(ghour); <br>nmin = 60 - parseInt(gmin); <br>nsec = 60 - parseInt(gsec); <br>go(); <br>if(((bday == 366) && (leapyear(yy))) || ((bday == 365) <br>&& (!leapyear(yy)))) { <br>document.form1.bday.value = "today is your birthday"; <br>alert("Happy Birthday"); <br>} else { <br>document.form1.bday.value = bday + " days " + nhour + " hours " + nmin <br>+ " minutes " + nsec + " seconds"; <br>setTimeout("run()", 1); <br>} <br>function go() { <br>function lyear(a) { <br>if(((a % 4 == 0) && (a % 100 != 0)) || (a % 400 == 0)) return <br>true; <br>else return false; <br>} <br>mm = parseInt(mm); <br>dd = parseInt(dd); <br>yy = parseInt(yy); <br>if ((mm < 1) || (mm > 12) || (dd < 1) || (dd > 31) || (yy <br>< 1) ||(mm == " ") || (dd == " ") || (yy == " ")) main="Invalid"; <br>else if (((mm == 4) || (mm == 6) || (mm == 9) || (mm == 11)) && <br>(dd > 30)) main = "Invalid"; <br>else <br>if (mm == 2) { <br>if (dd > 29) <br>main = "Invalid"; <br>else <br>if(( dd > 28) && (!lyear(yy))) <br>main = "Invalid"; <br>} <br>else main = main; <br>if(main == "valid") { <br>var m; <br>if (mm == 1) n = 31; <br>if (mm == 2) n = 59 + 1; <br>if (mm == 3) n = 90 + 1; <br>if (mm == 4) n = 120 + 1; <br>if (mm == 5) n = 151 + 1; <br>if (mm == 6) n = 181 + 1; <br>if (mm == 7) n = 212 + 1; <br>if (mm == 8) n = 243 + 1; <br>if (mm == 9) n = 273 + 1; <br>if (mm == 10) n = 304 + 1; <br>if (mm == 11) n = 334 + 1; <br>if (mm == 12) n = 365 + 1; <br>if((mm == 1)||(mm == 3)||(mm == 5)||(mm == 7)||(mm == 8)||(mm == <br>10)||(mm == 12)) <br>n += 31 + dd; <br>else if((mm == 4)||(mm == 6)||(mm == 9)||(mm == 11)) <br>n += 31 + dd + 1; <br>else if(mm == 2) { <br>if(lyear(yy)) n += 29 + dd - 3; <br>else if(!lyear(yy)) n += 28 + dd - 1; <br>} <br>fours = yy / 4; <br>hunds = yy / 100; <br>fhunds = yy / 400; <br>var day; <br>day = (yy + n + fours - hunds + fhunds) % 7; <br>day = parseInt(day) <br>switch(day) <br>{ <br>case 1 : document.form1.age.value +=" you were born on a Sunday" <br>break <br>case 2 : document.form1.age.value +=" you were born on a Monday" <br>break <br>case 3 : document.form1.age.value +=" you were born on a Tuesday" <br>break <br>case 4 : document.form1.age.value +=" you were born on a Wednesday" <br>break <br>case 5 : document.form1.age.value +=" you were born on a Thursday" <br>break <br>case 6 : document.form1.age.value +=" you were born on a Friday" <br>break <br>case 7 : document.form1.age.value +=" you were born on a Saturday" <br>break <br>case 0 : document.form1.age.value +=" you were born on a Saturday" <br>break } <br>} <br>else { <br>document.form1.age.value += main + " Date"; } } <br>} <br>else { <br>document.form1.age.value = main + " Date"; <br>document.form1.months.value = ""; <br>document.form1.weeks.value = ""; <br>document.form1.answer.value = ""; <br>document.form1.hours.value = ""; <br>document.form1.min.value = ""; <br>document.form1.sec.value = ""; <br>document.form1.bday.value = ""; <br>document.form1.milli.value = ""; } <br>} <br>// End --> <br></> <br></HEAD> <br><!-- STEP TWO: Insert the onLoad event handler into your BODY tag <br>--> <br><BODY onLoad="start()"> <br><!-- STEP THREE: Copy this code into the BODY of your HTML document <br>--> <br><CENTER> <br><br> <br>Enter your date of birth <br><br> <br><FORM name=form1> <br>Month<INPUT name=month size=3> Date<INPUT name=day size=3> <br>Year<INPUT name=year size=6> Hours<INPUT name=hrs value=00 <br>size=6> <br><select size="1" name="ampm"> <br><option selected>AM</option> <br><option>PM</option> <br></select> <br><INPUT name=start onclick=run() type=button value="Calculate"> <br><BR> <br><BR> <br><INPUT name=age size=55 value="Your age will be displayed here"> <br><BR> <br><BR> <br>You have been living for: <br><BR> <br><TABLE border = 0> <br><TBODY> <br><TR> <br><TD>In months:</TD> <br><TD><INPUT name=months size=30></TD> <br></TR> <br><TR> <br><TD>In weeks:</TD> <br><TD><INPUT name=weeks size=30></TD> <br></TR> <br><TR> <br><TD>In days:</TD> <br><TD><INPUT name=answer size=30></TD> <br></TR> <br><TR> <br><TD>In hours:</TD> <br><TD><INPUT name=hours size=30></TD> <br></TR> <br><TR> <br><TD>In minutes:</TD> <br><TD><INPUT name=min size=30></TD> <br></TR> <br><TR> <br><TD>In seconds:</TD> <br><TD><INPUT name=sec size=30></TD> <br></TR> <br><TR> <br><TD>In Milliseconds:</TD> <br><TD><INPUT name=milli size=30></TD> <br></TR> <br></TBODY> <br></TABLE> <br>Your next birthday will be in: <br><BR> <br><INPUT name=bday size=40> </FORM> <br></CENTER> <br><p><center> <br><font face="arial, helvetica" size"-2">Free Javas <br>provided<br> <br>by <a href="java:if(confirm("http://javasource.com/ <br>\n\nThis file was not retrieved by Teleport Pro, because it is <br>addressed on a domain or path outside the boundaries set for its <br>Starting Address. \n\nDo you want to open it from the <br>server?"))window="http://javasource.com/"" <br>tppabs="http://javasource.com/">The Java <br>Source</a></font> <br></center><p> <br><!-- Size: 10.86 KB -->
کد توضیح یک لینک در استاتوس بار
<html> <br><head> <br></head> <br><body> <br><h1> <br><a href="index.htm" tppabs="http://www.khafankadeh.7p.com/" <br>onMouseover="window.status="Hiva web site !";return true" <br>onMouseout="window.status="";return true">MahmoodBina KKR <br>Corp</a> <br></h1> <br></body> <br></html>
کد منوی متحرک کنار صفحه
<> <br>NS6 = (document.getElementById&&!document.all) <br>IE = (document.all) <br>NS = (navigator.appName=="Netscape" && <br>navigator.appVersion.charAt(0)=="4") <br>tempBar="";barBuilt=0;ssmItems=new Array(); <br>moving=setTimeout("null",1) <br>function moveOut() { <br>if ((NS6||NS)&&parseInt(ssm.left)<0 || IE && <br>ssm.pixelLeft<0) { <br>clearTimeout(moving);moving = setTimeout("moveOut()", <br>slideSpeed);slideMenu(10)} <br>else {clearTimeout(moving);moving=setTimeout("null",1)}}; <br>function moveBack() {clearTimeout(moving);moving = <br>setTimeout("moveBack1()", waitTime)} <br>function moveBack1() { <br>if ((NS6||NS) && parseInt(ssm.left)>(-menuWidth) || IE <br>&& ssm.pixelLeft>(-menuWidth)) { <br>clearTimeout(moving);moving = setTimeout("moveBack1()", <br>slideSpeed);slideMenu(-10)} <br>else {clearTimeout(moving);moving=setTimeout("null",1)}} <br>function slideMenu(num){ <br>if (IE) {ssm.pixelLeft += num;}if (NS||NS6) {ssm.left = <br>parseInt(ssm.left)+num;} <br>if (NS) {bssm.clip.right+=num;bssm2.clip.right+=num;}} <br>function makeStatic() { <br>if (NS||NS6) {winY = window.pageYOffset;} <br>if (IE) {winY = document.body.scrollTop;} <br>if (NS6||IE||NS) { <br>if (winY!=lastY&&winY>YOffset-staticYOffset) { <br>smooth = .2 * (winY - lastY - YOffset + staticYOffset);} <br>else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) { <br>smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));} <br>else {smooth=0} <br>if(smooth > 0) smooth = Math.ceil(smooth); <br>else smooth = Math.floor(smooth); <br>if (IE) bssm.pixelTop+=smooth; <br>if (NS6||NS) bssm.top=parseInt(bssm.top)+smooth <br>lastY = lastY+smooth; <br>setTimeout("makeStatic()", 1)}} <br>function buildBar() { <br>if(barText.indexOf("<IMG")>-1) {tempBar=barText} <br>else{for (b=0;b<barText.length;b++) <br>{tempBar+=barText.charAt(b)+"<BR>"}} <br>document.write("<td align="center" rowspan="100" <br>width=""+barWidth+"" bgcolor=""+barBGColor+"" <br>valign=""+barVAlign+""><p align="center"><font <br>face=""+barFontFamily+"" Size=""+barFontSize+"" <br>COLOR=""+barFontColor+""><B>"+tempBar+"</B></font></p></TD>")} <br>function initSlide() { <br>if <br>(NS6){ssm=document.getElementById("thessm").style;bssm=document.getElementById("basessm").style; <br>bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidth+" <br>"+document.getElementById("thessm").offsetHeight+" <br>0)";ssm.visibility="visible";} <br>else if (IE) <br>{ssm=document.all("thessm").style;bssm=document.all("basessm").style <br>bssm.clip="rect(0 "+thessm.offsetWidth+" "+thessm.offsetHeight+" <br>0)";bssm.visibility = "visible";} <br>else if (NS) {bssm=document.layers["basessm1"]; <br>bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"]; <br>bssm2.clip.left=0;ssm.visibility = "show";} <br>if (menuIsStatic=="yes") makeStatic();} <br>function buildMenu() { <br>if (IE||NS6) {document.write("<DIV ID="basessm" <br>style="visibility:hidden;Position : Absolute ;Left : "+XOffset+" ;Top : <br>"+YOffset+" ;Z-Index : 20;width:"+(menuWidth+barWidth+10)+""><DIV <br>ID="thessm" style="Position : Absolute ;Left : "+(-menuWidth)+" ;Top : <br>0 ;Z-Index : 20;" onmouseover="moveOut()" <br>onmouseout="moveBack()">")} <br>if (NS) {document.write("<LAYER name="basessm1" top=""+YOffset+"" <br>LEFT="+XOffset+" visibility="show"><ILAYER <br>name="basessm2"><LAYER visibility="hide" name="thessm" <br>bgcolor=""+menuBGColor+"" left=""+(-menuWidth)+"" <br>onmouseover="moveOut()" onmouseout="moveBack()">")} <br>if (NS6){document.write("<table border="0" cellpadding="0" <br>cellspacing="0" width=""+(menuWidth+barWidth+0)+"" <br>bgcolor=""+menuBGColor+""><TR><TD>")} <br>document.write("<table border="0" cellpadding="0" cellspacing="0" <br>width=""+(menuWidth+barWidth+0)+"" bgcolor=""+menuBGColor+"">"); <br>for(i=0;i<ssmItems.length;i++) { <br>if(!ssmItems[i][3]){ssmItems[i][3]=menuCols;ssmItems[i][5]=menuWidth-1} <br>else <br>if(ssmItems[i][3]!=menuCols)ssmItems[i][5]=Math.round(menuWidth*(ssmItems[i][3]/menuCols)-1); <br>if(ssmItems[i-1]&&ssmItems[i-1][4]!="no"){document.write("<TR>")} <br>if(!ssmItems[i][1]){ <br>document.write("<td bgcolor=""+hdrBGColor+"" HEIGHT=""+hdrHeight+"" <br>ALIGN=""+hdrAlign+"" VALIGN=""+hdrVAlign+"" WIDTH=""+ssmItems[i][5]+"" <br>COLSPAN=""+ssmItems[i][3]+""> <font face=""+hdrFontFamily+"" <br>Size=""+hdrFontSize+"" <br>COLOR=""+hdrFontColor+""><b>"+ssmItems[i][0]+"</b></font></td>")} <br>else {if(!ssmItems[i][2])ssmItems[i][2]=linkTarget; <br>document.write("<TD BGCOLOR=""+linkBGColor+"" <br>onmouseover="bgColor=\""+linkOverBGColor+"\"" <br>onmouseout="bgColor=\""+linkBGColor+"\"" WIDTH=""+ssmItems[i][5]+"" <br>COLSPAN=""+ssmItems[i][3]+""><ILAYER><LAYER <br>onmouseover="bgColor=\""+linkOverBGColor+"\"" <br>onmouseout="bgColor=\""+linkBGColor+"\"" WIDTH="100%" <br>ALIGN=""+linkAlign+""><DIV ALIGN=""+linkAlign+""><FONT <br>face=""+linkFontFamily+"" Size=""+linkFontSize+""> <A <br>HREF=""+ssmItems[i][1]+"" target=""+ssmItems[i][2]+"" <br>CLASS="new">"+ssmItems[i][0]+"</DIV></LAYER></ILAYER></TD>")} <br>if(ssmItems[i][4]!="no"&&barBuilt==0){buildBar();barBuilt=1} <br>if(ssmItems[i][4]!="no"){document.write("</TR>")}} <br>document.write("</table>") <br>if (NS6){document.write("</TD></TR></TABLE>")} <br>if (IE||NS6) {document.write("</DIV></DIV>")} <br>if (NS) {document.write("</LAYER></ILAYER></LAYER>")} <br>theleft=-menuWidth;lastY=0;setTimeout("initSlide();", 1)} <br>YOffset=1; XOffset=0; <br>staticYOffset=0; slideSpeed=20 waitTime=100; <br>menuBGColor="black"; <br>menuIsStatic="yes"; <br>menuWidth=130; menuCols=2; <br>hdrFontFamily="arial"; <br>hdrFontSize="2"; <br>hdrFontColor="white"; <br>hdrBGColor="white"; <br>hdrAlign="left"; <br>hdrVAlign="center"; <br>hdrHeight="15"; <br>linkFontFamily="arial"; <br>linkFontSize="2"; <br>linkBGColor="gray"; <br>linkOverBGColor="red"; <br>linkTarget="_top"; <br>linkAlign="left"; <br>barBGColor="black"; <br>barFontFamily="arial"; <br>barFontSize="3"; <br>barFontColor="white"; <br>barVAlign="center"; <br>barWidth=18; barText="MaHmOoD" <br>ssmItems[0]=["home", "http://khafankadeh.tk/", "_parent"] <br>ssmItems[1]=["E-mail us", "kkr129@yahoo.com/", "_parent"] <br>ssmItems[2]=["hmahmood ", "http://www.khafankadeh.7p.com", "_parent"] <br>ssmItems[3]=["Download", "http://www.hackeran.7p.com","_parent"] <br>buildMenu(); <br></>
کد تایین صحت پسورد
<html> <br><head> <br> <br>< language="java" type="text/java"> <br>function validForm(passForm){ <br>if (passForm.passwd1.valu == "") { <br>alert("you must enter a password") <br>passForm.passwd1.focus() <br>return false <br>} <br> <br> <br>if(passForm.passwd1.value !=passForm.passwd2.value) { <br>alert("entered passwords did not match") <br> <br>passForm.passwd1.focus() <br>passForm.passwd1.select() <br> <br>return false <br>} <br>return true <br>} <br> <br> <br></> <br> <br></head> <br> <br><body><h3> <br><form onSubmit="return validForm(this)" action="http://www.khafankadeh.7p.com/ok.asp"> <br>Your name:<input type="text" size="30"><br> <br>Choose a password:<input type="password" name="passwd1" size="20"><br> <br>verify password:<input type="password" name="passwd2" size="20"><br> <br><input type="Submit" value="Submit"> <br></form> <br></h3> <br> <br></body> <br></html>