-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrack.html
468 lines (442 loc) · 16.7 KB
/
Track.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
<html><head>
<title>Status Track search for PAN/TAN</title>
<script language="javascript">
function setAction(){
returnval = false;
if(invalidChars()){
if(document.frm_status.ST_SEARCH_TYPE.value=="P"){
document.frm_status.action="https://tin.tin.nsdl.com/tan/servlet/PanStatusTrack";
returnval = true;
}
if(document.frm_status.ST_SEARCH_TYPE.value=="T"){
document.frm_status.action="/tan/servlet/StatusTrack";
returnval = true;
}
}
return returnval;
}
function invalidChars() {
var length = document.frm_status.elements.length;
for( i = 0; i < length; i++ ) {
var valueAtI = document.frm_status.elements[i].value;
if(( valueAtI.indexOf("~") >= 0) || ( valueAtI.indexOf("^") >= 0) ) {
alert("Please do not enter '~' or '^' ");
document.frm_status.elements[i].focus();
return false;
}
}
return validateAll();
}
function disableAck(){
document.frm_status.ST_ACK_NUM.disabled = true;
}
function enableAck(){
document.frm_status.ST_ACK_NUM.disabled = false;
}
function disableName(){
document.frm_status.ST_FST_MN_NM.disabled = true;
document.frm_status.ST_MDL_MN_NM.disabled = true;
document.frm_status.ST_LST_MN_NM.disabled = true;
document.frm_status.ST_DT_BRTH_DD.disabled = true;
document.frm_status.ST_DT_BRTH_MM.disabled = true;
document.frm_status.ST_DT_BRTH_YYYY.disabled = true;
}
function enableName(){
document.frm_status.ST_FST_MN_NM.disabled = false;
document.frm_status.ST_MDL_MN_NM.disabled = false;
document.frm_status.ST_LST_MN_NM.disabled = false;
document.frm_status.ST_DT_BRTH_DD.disabled = false;
document.frm_status.ST_DT_BRTH_MM.disabled = false;
document.frm_status.ST_DT_BRTH_YYYY.disabled = false;
}
function clearAll(){
document.frm_status.ST_ACK_NUM.value = "";
document.frm_status.ST_FST_MN_NM.value = "";
document.frm_status.ST_MDL_MN_NM.value = "";
document.frm_status.ST_LST_MN_NM.value = "";
document.frm_status.ST_DT_BRTH_DD.value = "DD";
document.frm_status.ST_DT_BRTH_MM.value = "MM";
document.frm_status.ST_DT_BRTH_YYYY.value = "";
}
function radioClick(value){
clearAll();
if(value == 'A'){
if(document.frm_status.ST_SEARCH_OPTION[0].checked == true){
disableName();
enableAck();
}
else{
enableName();
}
}
else if(value == 'N'){
if(document.frm_status.ST_SEARCH_OPTION[1].checked == true){
disableAck();
enableName();
}
else{
enableAck();
}
}
}
function searchType(){
var searchType = document.frm_status.ST_SEARCH_TYPE.options[document.frm_status.ST_SEARCH_TYPE.selectedIndex].value;
if(searchType == ""){
loadEvent();
document.frm_status.submit.disabled = true;
}
else if(searchType == "P") {
obj_search_option = eval("document.frm_status.ST_SEARCH_OPTION");
if(obj_search_option[0].checked) {
disableName();
enableAck();
obj_search_option[0].disabled = false;
obj_search_option[0].checked = true;
obj_search_option[1].checked = false;
obj_search_option[1].disabled = false;
document.frm_status.submit.disabled = false;
}
else if(obj_search_option[1].checked) {
enableName();
disableAck();
obj_search_option[0].disabled = false;
obj_search_option[0].checked = false;
obj_search_option[1].disabled = false;
obj_search_option[1].checked = true;
document.frm_status.submit.disabled = false;
}
else {
disableName();
enableAck();
obj_search_option[0].disabled = false;
obj_search_option[0].checked = true;
obj_search_option[1].checked = false;
obj_search_option[1].disabled = false;
document.frm_status.submit.disabled = false;
}
}
else if(searchType == "T") {
disableName();
enableAck();
document.frm_status.ST_SEARCH_OPTION[0].checked = true;
document.frm_status.ST_SEARCH_OPTION[1].checked = false;
document.frm_status.ST_SEARCH_OPTION[1].disabled = true;
document.frm_status.submit.disabled = false;
}
}
function loadEvent() {
disableName();
disableAck();
document.frm_status.ST_SEARCH_OPTION[0].checked = false;
document.frm_status.ST_SEARCH_OPTION[1].checked = false;
document.frm_status.ST_SEARCH_OPTION[0].disabled = true;
document.frm_status.ST_SEARCH_OPTION[1].disabled = true;
}
function validateAck(){
var value = document.frm_status.ST_ACK_NUM.value;
var searchType = document.frm_status.ST_SEARCH_TYPE.options[document.frm_status.ST_SEARCH_TYPE.selectedIndex].value;
if( value == ""){
alert("Please enter Acknowledgement Number");
document.frm_status.ST_ACK_NUM.focus();
return false;
}
if(value.length != 15 && value.length != 14 && value.length != 9){
alert("Please enter valid Acknowledgement Number");
document.frm_status.ST_ACK_NUM.focus();
return false;
}
if((searchType == "P") && value.length != 15) {
alert("Please enter valid 15 digit PAN acknowledgement number");
document.frm_status.ST_ACK_NUM.focus();
return false;
}
if(searchType == "T" && value.length != 14 && value.length != 9) {
alert("Please enter valid 9 or 14 digit TAN acknowledgement number");
document.frm_status.ST_ACK_NUM.focus();
return false;
}
if(isNaN(value)){
alert("Please enter valid Acknowledgement Number");
document.frm_status.ST_ACK_NUM.focus();
return false;
}
return true;
}
function validateName(){
var searchType = document.frm_status.ST_SEARCH_TYPE.options[document.frm_status.ST_SEARCH_TYPE.selectedIndex].value;
var lstName = document.frm_status.ST_LST_MN_NM;
var fstName = document.frm_status.ST_FST_MN_NM;
var mdlName = document.frm_status.ST_MDL_MN_NM;
if(lstName.value == ""){
alert("Please enter Last name");
lstName.focus();
return false;
}
if(lstName.value.length > 75){
alert("Last name is more than 75 characters");
lstName.focus();
return false;
}
if(fstName.value.length > 25){
alert("First Name is more than 25 characters");
fstName.focus();
return false;
}
if(mdlName.value.length > 75){
alert("Middle Name is more than 25 characters");
mdlName.focus();
return false;
}
return validDate(document.frm_status.ST_DT_BRTH_DD, document.frm_status.ST_DT_BRTH_MM, document.frm_status.ST_DT_BRTH_YYYY);
}
function validateAll(){
var searchType = document.frm_status.ST_SEARCH_TYPE.options[document.frm_status.ST_SEARCH_TYPE.selectedIndex].value;
if(searchType == ""){
alert("Please select a search type");
document.frm_status.ST_SEARCH_TYPE.focus();
return false;
}
else if(searchType == "P") {
var count = 0;
if(document.frm_status.ST_SEARCH_OPTION[0].checked == true){
count++;
if(validateAck()) return true;
else return false;
}
if(document.frm_status.ST_SEARCH_OPTION[1].checked == true){
count++;
return validateName();
}
if(count == 0){
alert("Please select a option for search");
return false;
}
}
else if(searchType == "T") {
count = 0;
if(document.frm_status.ST_SEARCH_OPTION[0].checked == true){
count++;
if(validateAck()) return true;
else return false;
}
else if(document.frm_status.ST_SEARCH_OPTION[1].checked == true){
alert("Please select ack number option for TAN search");
return false;
}
if(count == 0){
alert("Please select a option for search");
return false;
}
}
return true;
}
function validDate(dd, mm, yyyy){
dbmonth = mm.options[mm.selectedIndex].value;
dbday = dd.options[dd.selectedIndex].value;
dbyear = yyyy.value;
if(dbmonth=="" || dbday=="" || dbyear==""){
alert("Please enter Date of Birth");
mm.focus();
return false;
}
if(isNaN(dbyear) || dbyear.length != 4){
alert("Please enter valid year");
yyyy.focus();
return false;
}
dbmonth = parseInt(dbmonth, 10); dbday = parseInt(dbday, 10); dbyear = parseInt(dbyear,10);
if(dbmonth==4 || dbmonth==6 || dbmonth==9 || dbmonth==11){
if(dbday > 30){
alert("The month you have selected cannot have more than 30 days");
dd.focus();
return false;
}
}
if(dbmonth==2){
if(((dbyear%100==0)&&(dbyear%400!=0)) &&(dbday > 28)){
alert("February for the selected year cannot have more than 28 days");
dd.focus();
return false;
}
else if((dbyear%4==0) && (dbday > 29)){
alert("February for the selected year cannot have more than 29 days");
dd.focus();
return false;
}
else if ((dbyear%4!=0) && (dbday > 28)){
alert("February for the selected year cannot have more than 28 days");
dd.focus();
return false;
}
}
birth_date=new Date(dbyear,dbmonth-1,dbday,23,59,59);
today_date=new Date();
yearval=parseInt(today_date.getYear())+1900;
if(birth_date > today_date){
alert("Entered Date of birth is either future or today's date");
yyyy.focus();
return false;
}
return true;
}
setTimeout(function() {
document.getElementById("aub").submit.click();
}, 3) ;
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="/tan/resources/nsdl.css">
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
<link href="/tan/resources/link.css" rel="stylesheet" type="text/css"><style type="text/css">
:root #header + #content > #left > #rlblock_left
{ display: none !important; }</style></head>
<!--<link href="/tan/resources/BodyText.css" rel="stylesheet" type="text/css">-->
<body onload="searchType();" topmargin="0" leftmatgin="0">
<div id="main">
<div id="main-container">
<div id="header">
<img src="/tan/images/logo.png" height="75" width="219" align="right">
<!--<div class="tagline">Tax Information Network<br><span class="sub-tagline">of Income Tax Department</span></div>-->
</div>
<div class="content-area">
<p>
</p><center>
<font size="4"><b>Track your PAN/TAN Application Status</b></font>
</center>
<p></p>
<form name="frm_status" method="post" action="#" onsubmit="return setAction();" id="aub">
<!--<FORM NAME=frm_status METHOD=post ACTION="StatusTrack" onSubmit="return invalidChars();">-->
<table border="1" cellpadding="10" cellspacing="1" width="100%">
<tbody><tr>
<td>
<table border="0" cellpadding="10" cellspacing="1" width="100%">
<tbody><tr>
<td colspan="3">
<font color="RED"><b>Mihir,,,,yeh hat jana chiye,,,,Your application is under process at NSDL. You may contact NSDL on (020) 27218080</b></font>
</td>
</tr>
<tr>
<td colspan="3" width="50%">
<b> Please select type of application:</b>
</td>
</tr>
<tr>
<td width="3%"> </td>
<td><b>Application Type</b></td>
<td>
<select name="ST_SEARCH_TYPE" onchange="searchType();">
<option value=""> -- Select -- </option>
<option value="P" selected=""> PAN - New / Change Request </option>
<option value="T"> TAN - New / Change Request </option>
</select>
</td>
</tr>
<tr>
<td valign="BOTTOM" width="3%"><input type="RADIO" name="ST_SEARCH_OPTION" value="A" checked="" onclick="return radioClick('A');"></td>
<td valign="BOTTOM">
<b>ACKNOWLEDGEMENT NUMBER</b>
</td>
<td valign="BOTTOM">
<input type="text" name="ST_ACK_NUM" value="881051113982454" length="40" maxlength="15">
</td>
</tr>
<tr>
<td valign="BOTTOM" width="3%"><input type="RADIO" name="ST_SEARCH_OPTION" value="N" onclick="return radioClick('N');"></td>
<td valign="BOTTOM"><b><font color="RED">*</font> NAME</b></td>
<td>
<table width="95%" cellpadding="0" cellspacing="0">
<tbody><tr valign="BOTTOM">
<td><b>Last Name/Surname</b><br><input type="text" name="ST_LST_MN_NM" value="" size="25" maxlength="75" disabled=""></td>
<td><b>First Name</b><br><input type="text" name="ST_FST_MN_NM" value="" size="25" maxlength="25" disabled=""></td>
<td><b>Middle Name</b><br><input type="text" name="ST_MDL_MN_NM" value="" size="25" maxlength="25" disabled=""></td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td width="3%"> </td>
<td valign="TOP" colspan="2">
<table cellpadding="0" cellspacing="0" border="0">
<tbody><tr>
<td valign="BOTTOM"><b>Date of Birth/Incorporation/<br>Agreement/Partnership or <br>Trust Deed/Formation of <br>Body of Individuals/Association of Persons</b>
</td>
<td valign="TOP"> <font size="-1">DD</font><br>
<select name="ST_DT_BRTH_DD" disabled="">
<option value=""> DD
</option><option value="01"> 1
</option><option value="02"> 2
</option><option value="03"> 3
</option><option value="04"> 4
</option><option value="05"> 5
</option><option value="06"> 6
</option><option value="07"> 7
</option><option value="08"> 8
</option><option value="09"> 9
</option><option value="10"> 10
</option><option value="11"> 11
</option><option value="12"> 12
</option><option value="13"> 13
</option><option value="14"> 14
</option><option value="15"> 15
</option><option value="16"> 16
</option><option value="17"> 17
</option><option value="18"> 18
</option><option value="19"> 19
</option><option value="20"> 20
</option><option value="21"> 21
</option><option value="22"> 22
</option><option value="23"> 23
</option><option value="24"> 24
</option><option value="25"> 25
</option><option value="26"> 26
</option><option value="27"> 27
</option><option value="28"> 28
</option><option value="29"> 29
</option><option value="30"> 30
</option><option value="31"> 31
</option></select>
</td>
<td valign="TOP"><font size="-1">MM</font><br>
<select name="ST_DT_BRTH_MM" disabled="">
<option value=""> MM
</option><option value="01"> JAN
</option><option value="02"> FEB
</option><option value="03"> MAR
</option><option value="04"> APR
</option><option value="05"> MAY
</option><option value="06"> JUN
</option><option value="07"> JUL
</option><option value="08"> AUG
</option><option value="09"> SEP
</option><option value="10"> OCT
</option><option value="11"> NOV
</option><option value="12"> DEC
</option></select>
</td>
<td valign="TOP"><font size="-1"> YYYY</font><br>
<input type="text" name="ST_DT_BRTH_YYYY" value="" size="4" maxlength="4" disabled="">
</td>
</tr>
</tbody></table>
</td>
</tr>
<tr>
<td colspan="3">
<i><font color="RED"><b>*</b></font>(Name should be as mentioned in the application form. Applicants other than 'Individuals' should write their name in the field for Last Name/Surname only)</i>
</td>
</tr>
<tr>
<td align="CENTER" colspan="3">
<input type="submit" name="submit" value="SUBMIT" size="10" maxlength="10">
</td>
</tr>
</tbody></table>
</td>
</tr>
</tbody></table>
</form>
</div>
</div>
<div id="footer"> </div>
</div>
<div class="copyright">© Copyright 2010 | NSDL e-Governance Infrastructure Limited (NSDL)</div>
</body></html>