return false; } else if (obj_type == "SINGLE_VALUE_RADIO" || obj_type == "SINGLE_VALUE_CHECKBOX") { if (obj.checked) return true; else return false; } else if (obj_type == "RADIO" || obj_type == "CHECKBOX") { for (i=0; i < obj.length; i++) { if (obj[i].checked) return true; } return false; } } function _CF_checkinteger(object_value) { //Returns true if value is a number or is NULL //otherwise returns false if (object_value.length == 0) return true; //Returns true if value is an integer defined as // having an optional leading + or -. // otherwise containing only the characters 0-9. var decimal_format = "."; var check_char; //The first character can be + - blank or a digit. check_char = object_value.indexOf(decimal_format) //Was it a decimal? if (check_char < 1) return _CF_checknumber(object_value); else return false; } function _CF_checknumber(object_value) { //Returns true if value is a number or is NULL //otherwise returns false if (object_value.length == 0) return true; //Returns true if value is a number defined as // having an optional leading + or -. // having at most 1 decimal point. // otherwise containing only the characters 0-9. var start_format = " .+-0123456789"; var number_format = " .0123456789"; var check_char; var decimal = false; var trailing_blank = false; var digits = false; //The first character can be + - . blank or a digit. check_char = start_format.indexOf(object_value.charAt(0)) //Was it a decimal? if (check_char == 1) decimal = true; else if (check_char < 1) return false; //Remaining characters can be only . or a digit, but only one decimal. for (var i = 1; i < object_value.length; i++) { check_char = number_format.indexOf(object_value.charAt(i)) if (check_char < 0) return false; else if (check_char == 1) { if (decimal) // Second decimal. return false; else decimal = true; } else if (check_char == 0) { if (decimal || digits) trailing_blank = true; // ignore leading blanks } else if (trailing_blank) return false; else digits = true; } //All tests passed, so... return true } function _CF_checkCFForm_1(_CF_this) { if (!_CF_hasValue(_CF_this.LastName, "TEXT" )) { if (!_CF_onError(_CF_this, _CF_this.LastName, _CF_this.LastName.value, "Please type in a last name")) { return false; } } if (!_CF_hasValue(_CF_this.MemID, "PASSWORD" )) { if (!_CF_onError(_CF_this, _CF_this.MemID, _CF_this.MemID.value, "ASME Membership Number has to be an integer")) { return false; } } if (!_CF_checkinteger(_CF_this.MemID.value)) { if (!_CF_onError(_CF_this, _CF_this.MemID, _CF_this.MemID.value, "ASME Membership Number has to be an integer")) { return false; } } return true; } //-->
Top Navigation
Topics
 

Left Navigation


 

Member's Page

Welcome to the "Members Only" Page
Here you will find features and benefits available to ASME members
 

Last Name:   
ASME Membership Number:

 

 
ASME GLOBAL UNITS
Board of Governors
What's My Region?
Sections (Worldwide)
Student Sections
ASME International Offices
CONTACT INFORMATION
Phone: 1-800-843-2763
or 1-973-882-1167
Fax: 1-973-882-1717

Questions about your members only benefits or signing in:
infocentral@asme.org
VISITOR FEEDBACK
Let us know how we can serve you better!
 

Copyright © 1996-2004 ASME International. All Rights Reserved. Terms of Use | Privacy Statement
ASME International Search About Membership & Benefits Codes & Standards Join News ME Magazine Members Only Home Products Help Contact ASME Join a Public Forum, Discuss Topics, Network with Others Resource Centers Downloadable Resources, Linda Hall, and More Find a Job, Post a Job, Career Resources, and Career Fairs Find information on ASME's 37 Technical Divisions and Groups Short Courses, In-Company Training, Global Training, Technology Seminars, and Distance Learning Codes and Standards, Journals, Periodicals, Conference Proceedings, and More Conferences, Meetings, Course Schedules, and Business Meetings Public Information, News, Government Relations, History and More Public and Private Discussion Groups Download Library, Linda Hall Library, HTRC Public Policy, Press Releases,  Issues Conferences, Events, Seminars, Courses & Training, Calendar of Events Career information, Search for a Job, Post a Job, Salary Information Volunteers & Committees, BOG, Councils