1function ConfirmChoice() 2 3{ 4 5answer = confirm("Sure to do Delete this Record?") 6 7if (answer == true) 8 9{ 10 11return true; 12} 13else 14{ 15return false; 16} 17} 18 19 20function validcp() 21{ 22 23 24 25 if(document.frm.name.value == "") 26 { alert("Please Specify name "); document.frm.name.focus(); return false; } 27 28 var reg1 = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; 29 var emailCheck = document.frm.emailid.value; 30 if(reg1.test(emailCheck) == false) 31 { alert("Invalid email address"); document.frm.emailid.focus(); return false; 32 } 33 if(document.frm.remarks.value == "") 34 { alert("Please Specify remarks "); document.frm.remarks.focus(); return false; } 35} 36 37 38function validforgot() 39{ 40 41 42 43 44 var reg1 = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; 45 var emailCheck = document.frm.emailid.value; 46 if(reg1.test(emailCheck) == false) 47 { alert("Invalid email address"); document.frm.emailid.focus(); return false; 48 } 49 50} 51 52 53function validlogin() 54{ 55 56 57 58 59 var reg1 = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; 60 var emailCheck = document.frm.emailid_h.value; 61 if(reg1.test(emailCheck) == false) 62 { alert("Invalid email address"); document.frm.emailid_h.focus(); return false; 63 } 64 if(document.getElementById("password_h").value == "") 65 { 66 alert("Password cannot be Blank!"); 67 document.frm.password_h.focus(); 68 return false; 69 } 70 71} 72 73 74 75 76 77 78 function validreg_admin() 79 { 80 81 82 var reg1 = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; 83 var emailCheck = document.frm.emailid.value; 84 if(reg1.test(emailCheck) == false) 85 { alert("Invalid email address"); document.frm.emailid.focus(); return false; 86 } 87 88 if(document.getElementById("password").value == "") 89 { 90 alert("Password cannot be Blank!"); 91 document.frm.password.focus(); 92 return false; 93 } 94 if(document.getElementById("password1").value == "") 95 { 96 alert("Confirm Password cannot be Blank!"); 97 document.frm.password1.focus(); 98 return false; 99 } 100 if(document.getElementById("password").value != document.getElementById("password1").value) 101 { 102 alert("Please confirm password again!"); 103 document.frm.password1.focus(); 104 return false; 105 } 106 107 108 } 109 110 111 112 113function validcu_admin() 114 { 115 116 if(document.getElementById("title").value == "") 117 { 118 alert("Title cannot be Blank!"); 119 document.frm.title.focus(); 120 return false; 121 } 122 123 if(document.getElementById("category").value == "") 124 { 125 alert("Category cannot be Blank! Please choose a category first"); 126 127 return false; 128 } 129 130 } 131 132 133 134function validactivation() { 135 if(document.getElementById("password").value == "") { 136 alert("Password cannot be Blank!"); 137 document.frm.password.focus(); 138 return false; 139 } 140 if(document.getElementById("password1").value == "") { 141 alert("Confirm Password cannot be Blank!"); 142 document.frm.password1.focus(); 143 return false; 144 } 145 if(document.getElementById("password").value != document.getElementById("password1").value) { 146 alert("Please confirm password again!"); 147 document.frm.password1.focus(); 148 return false; 149 } 150} 151 152 153function valid_bt2step() { 154 //console.log("A"); 155 if (document.getElementById("acc_name").value == "") { 156 alert("Your Account Name cannot be Blank!"); 157 document.bt_frm.acc_name.focus(); 158 return false; 159 } 160 if (document.getElementById("reference").value == "") { 161 alert("Reference cannot be Blank!"); 162 document.bt_frm.reference.focus(); 163 return false; 164 } 165 if (document.getElementById("details").value == "") { 166 alert("Details cannot be Blank!"); 167 document.bt_frm.details.focus(); 168 return false; 169 } 170} 171 172 173 174 function validreg() 175 { 176 if(document.getElementById("first_name").value == "") 177 { 178 alert("First Name cannot be Blank!"); 179 document.frm.first_name.focus(); 180 return false; 181 } 182 183 184 if(document.getElementById("last_name").value == "") 185 { 186 alert("Last Name cannot be Blank!"); 187 document.frm.last_name.focus(); 188 return false; 189 } 190 var reg1 = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
191 var emailCheck = document.frm.emailid.value; 192 if(reg1.test(emailCheck) == false) 193 { alert("Invalid email address"); document.frm.emailid.focus(); return false; 194 } 195 196 if(document.getElementById("password").value == "") 197 { 198 alert("Password cannot be Blank!"); 199 document.frm.password.focus(); 200 return false; 201 } 202 if(document.getElementById("password1").value == "") 203 { 204 alert("Confirm Password cannot be Blank!"); 205 document.frm.password1.focus(); 206 return false; 207 } 208 if(document.getElementById("password").value != document.getElementById("password1").value) 209 { 210 alert("Please confirm password again!"); 211 document.frm.password1.focus(); 212 return false; 213 } 214 215 216 217 if(document.getElementById("address").value == "") 218 { 219 alert("Shipping Address cannot be Blank!"); 220 document.frm.address.focus(); 221 return false; 222 } 223 if(document.getElementById("city").value == "") 224 { 225 alert("Shipping City cannot be Blank!"); 226 document.frm.city.focus(); 227 return false; 228 } 229 if(document.getElementById("state").value == "") 230 { 231 alert("Shipping State cannot be Blank!"); 232 document.frm.state.focus(); 233 return false; 234 } 235 if(document.getElementById("zipcode").value == "") 236 { 237 alert("Shipping zipcode cannot be Blank!"); 238 document.frm.zipcode.focus(); 239 return false; 240 } 241 if(document.getElementById("country").value == "") 242 { 243 alert("Shipping country cannot be Blank!"); 244 document.frm.country.focus(); 245 return false; 246 } 247 248 249 if(document.getElementById("saddress").value == "") 250 { 251 alert("Billing Address cannot be Blank!"); 252 document.frm.saddress.focus(); 253 return false; 254 } 255 if(document.getElementById("scity").value == "") 256 { 257 alert("Billing City cannot be Blank!"); 258 document.frm.scity.focus(); 259 return false; 260 } 261 if(document.getElementById("sstate").value == "") 262 { 263 alert("Billing State cannot be Blank!"); 264 document.frm.sstate.focus(); 265 return false; 266 } 267 if(document.getElementById("szipcode").value == "") 268 { 269 alert("Billing zipcode cannot be Blank!"); 270 document.frm.szipcode.focus(); 271 return false; 272 } 273 if(document.getElementById("scountry").value == "") 274 { 275 alert("Billing country cannot be Blank!"); 276 document.frm.scountry.focus(); 277 return false; 278 } 279 280 if(document.getElementById("phoneno").value == "") 281 { 282 alert("Telephone No cannot be Blank!"); 283 document.frm.phoneno.focus(); 284 return false; 285 } 286 287 if(document.getElementById("mobileno").value == "") 288 { 289 alert("Mobile No cannot be Blank!"); 290 document.frm.mobileno.focus(); 291 return false; 292 } 293 } 294 295 function validprof() 296 { 297 298 if(document.getElementById("first_name").value == "") 299 { 300 alert("First Name cannot be Blank!"); 301 document.frm.first_name.focus(); 302 return false; 303 } 304 305 306 if(document.getElementById("last_name").value == "") 307 { 308 alert("Last Name cannot be Blank!"); 309 document.frm.last_name.focus(); 310 return false; 311 } 312 313 if(document.getElementById("password").value == "") 314 { 315 alert("Password cannot be Blank!"); 316 document.frm.password.focus(); 317 return false; 318 } 319 if(document.getElementById("password1").value == "") 320 { 321 alert("Confirm Password cannot be Blank!"); 322 document.frm.password1.focus(); 323 return false; 324 } 325 if(document.getElementById("password").value != document.getElementById("password1").value) 326 { 327 alert("Please confirm password again!"); 328 document.frm.password1.focus(); 329 return false; 330 } 331 332 333 334 if(document.getElementById("address").value == "") 335 { 336 alert("Shipping Address cannot be Blank!"); 337 document.frm.address.focus(); 338 return false; 339 } 340 if(document.getElementById("city").value == "") 341 { 342 alert("Shipping City cannot be Blank!"); 343 document.frm.city.focus(); 344 return false; 345 } 346 if(document.getElementById("state").value == "") 347 { 348 alert("Shipping State cannot be Blank!"); 349 document.frm.state.focus(); 350 return false;
351 } 352 if(document.getElementById("zipcode").value == "") 353 { 354 alert("Shipping zipcode cannot be Blank!"); 355 document.frm.zipcode.focus(); 356 return false; 357 } 358 if(document.getElementById("country").value == "") 359 { 360 alert("Shipping country cannot be Blank!"); 361 document.frm.country.focus(); 362 return false; 363 } 364 365 366 if(document.getElementById("saddress").value == "") 367 { 368 alert("Billing Address cannot be Blank!"); 369 document.frm.saddress.focus(); 370 return false; 371 } 372 if(document.getElementById("scity").value == "") 373 { 374 alert("Billing City cannot be Blank!"); 375 document.frm.scity.focus(); 376 return false; 377 } 378 if(document.getElementById("sstate").value == "") 379 { 380 alert("Billing State cannot be Blank!"); 381 document.frm.sstate.focus(); 382 return false; 383 } 384 if(document.getElementById("szipcode").value == "") 385 { 386 alert("Billing zipcode cannot be Blank!"); 387 document.frm.szipcode.focus(); 388 return false; 389 } 390 if(document.getElementById("scountry").value == "") 391 { 392 alert("Billing country cannot be Blank!"); 393 document.frm.scountry.focus(); 394 return false; 395 } 396 397 if(document.getElementById("phoneno").value == "") 398 { 399 alert("Telephone No cannot be Blank!"); 400 document.frm.phoneno.focus(); 401 return false; 402 } 403 404 if(document.getElementById("mobileno").value == "") 405 { 406 alert("Mobile No cannot be Blank!"); 407 document.frm.mobileno.focus(); 408 return false; 409 } 410 } 411 412 413 414 function validcart() 415 { 416 417 if(document.getElementById("first_name").value == "") 418 { 419 alert("First Name cannot be Blank!"); 420 document.frm.first_name.focus(); 421 return false; 422 } 423 424 425 if(document.getElementById("last_name").value == "") 426 { 427 alert("Last Name cannot be Blank!"); 428 document.frm.last_name.focus(); 429 return false; 430 } 431 432 433 434 if(document.getElementById("address").value == "") 435 { 436 alert("Shipping Address cannot be Blank!"); 437 document.frm.address.focus(); 438 return false; 439 } 440 if(document.getElementById("city").value == "") 441 { 442 alert("Shipping City cannot be Blank!"); 443 document.frm.city.focus(); 444 return false; 445 } 446 if(document.getElementById("state").value == "") 447 { 448 alert("Shipping State cannot be Blank!"); 449 document.frm.state.focus(); 450 return false; 451 } 452 if(document.getElementById("zipcode").value == "") 453 { 454 alert("Shipping zipcode cannot be Blank!"); 455 document.frm.zipcode.focus(); 456 return false; 457 } 458 if(document.getElementById("country").value == "") 459 { 460 alert("Shipping country cannot be Blank!"); 461 document.frm.country.focus(); 462 return false; 463 } 464 465 466 if(document.getElementById("saddress").value == "") 467 { 468 alert("Billing Address cannot be Blank!"); 469 document.frm.saddress.focus(); 470 return false; 471 } 472 if(document.getElementById("scity").value == "") 473 { 474 alert("Billing City cannot be Blank!"); 475 document.frm.scity.focus(); 476 return false; 477 } 478 if(document.getElementById("sstate").value == "") 479 { 480 alert("Billing State cannot be Blank!"); 481 document.frm.sstate.focus(); 482 return false; 483 } 484 if(document.getElementById("szipcode").value == "") 485 { 486 alert("Billing zipcode cannot be Blank!"); 487 document.frm.szipcode.focus(); 488 return false; 489 } 490 if(document.getElementById("scountry").value == "") 491 { 492 alert("Billing country cannot be Blank!"); 493 document.frm.scountry.focus(); 494 return false; 495 } 496 497 if(document.getElementById("phoneno").value == "") 498 { 499 alert("Telephone No cannot be Blank!"); 500 document.frm.phoneno.focus(); 501 return false; 502 } 503 504 if(document.getElementById("mobileno").value == "") 505 { 506 alert("Mobile No cannot be Blank!"); 507 document.frm.mobileno.focus(); 508 return false; 509 } 510 } 511 512 513 514 515 516 517 518 519 520 function validcart_nosess() 521 { 522 523 if(document.getElementById("first_name").value == "") 524 { 525 alert("First Name cannot be Blank!"); 526 document.frm.first_name.focus(); 527 return false;
528 } 529 530 531 if(document.getElementById("last_name").value == "") 532 { 533 alert("Last Name cannot be Blank!"); 534 document.frm.last_name.focus(); 535 return false; 536 } 537 538 var reg1 = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; 539 var emailCheck = document.frm.emailid.value; 540 if(reg1.test(emailCheck) == false) 541 { alert("Invalid email address"); document.frm.emailid.focus(); return false; 542 } 543 544 if(document.getElementById("address").value == "") 545 { 546 alert("Shipping Address cannot be Blank!"); 547 document.frm.address.focus(); 548 return false; 549 } 550 if(document.getElementById("city").value == "") 551 { 552 alert("Shipping City cannot be Blank!"); 553 document.frm.city.focus(); 554 return false; 555 } 556 if(document.getElementById("state").value == "") 557 { 558 alert("Shipping State cannot be Blank!"); 559 document.frm.state.focus(); 560 return false; 561 } 562 if(document.getElementById("zipcode").value == "") 563 { 564 alert("Shipping zipcode cannot be Blank!"); 565 document.frm.zipcode.focus(); 566 return false; 567 } 568 if(document.getElementById("country").value == "") 569 { 570 alert("Shipping country cannot be Blank!"); 571 document.frm.country.focus(); 572 return false; 573 } 574 575 576 if(document.getElementById("saddress").value == "") 577 { 578 alert("Billing Address cannot be Blank!"); 579 document.frm.saddress.focus(); 580 return false; 581 } 582 if(document.getElementById("scity").value == "") 583 { 584 alert("Billing City cannot be Blank!"); 585 document.frm.scity.focus(); 586 return false; 587 } 588 if(document.getElementById("sstate").value == "") 589 { 590 alert("Billing State cannot be Blank!"); 591 document.frm.sstate.focus(); 592 return false; 593 } 594 if(document.getElementById("szipcode").value == "") 595 { 596 alert("Billing zipcode cannot be Blank!"); 597 document.frm.szipcode.focus(); 598 return false; 599 } 600 if(document.getElementById("scountry").value == "") 601 { 602 alert("Billing country cannot be Blank!"); 603 document.frm.scountry.focus(); 604 return false; 605 } 606 607 if(document.getElementById("phoneno").value == "") 608 { 609 alert("Telephone No cannot be Blank!"); 610 document.frm.phoneno.focus(); 611 return false; 612 } 613 614 if(document.getElementById("mobileno").value == "") 615 { 616 alert("Mobile No cannot be Blank!"); 617 document.frm.mobileno.focus(); 618 return false; 619 } 620 } 621 622 623function fill_ship(check_value){ 624 625 if(document.getElementById("shippingcheck").checked==true){ 626 627 628 document.getElementById("saddress").value=document.getElementById("address").value 629 document.getElementById("szipcode").value=document.getElementById("zipcode").value 630 document.getElementById("scity").value=document.getElementById("city").value 631 document.getElementById("sstate").value=document.getElementById("state").value 632 633 document.getElementById("scountry").value=document.getElementById("country").value 634 635 } 636 637 } 638 639 640
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.