Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
437 B

  1. function fnVerifyInput( obj, nSize )
  2. {
  3. var L_OVERLIMIT_TEXT = "You have exceeded the allowed size of the input box.";
  4. var nLen = new String( obj.value )
  5. if ( nLen.length > nSize )
  6. {
  7. alert( L_OVERLIMIT_TEXT );
  8. obj.value = nLen.substr( 0 , nSize );
  9. }
  10. }
  11. function fnFollowLink( szURL )
  12. {
  13. if ( typeof(window.navigate) != "undefined" )
  14. window.navigate( szURL );
  15. else
  16. {
  17. window.location.href=szURL;
  18. }
  19. }