ut_obj,input_value,err_msg); else { alert(err_msg); input_obj.focus(); return false; } } function isInRange(frm_obj,input_obj,input_value,min_value, max_value,err_msg) { if (input_value < min_value) { alert(err_msg); input_obj.focus(); return false; } if (input_value > max_value) { alert(err_msg); input_obj.focus(); return false; } return true; } function isAlphaNum(frm_obj,input_obj,input_value,err_msg) { var NumericFormat = /[^a-zA-Z0-9]/; var matchArray = input_value.match(NumericFormat); if (matchArray == null) { return true; } else { alert(err_msg); input_obj.focus(); return false; } } function isAcceptDate(frm_obj,input_obj1,input_value1,input_obj2,input_value2,err_msg) { // Returns true if date1 less than date2 // otherwise returns false; var ConvertStart = input_value1.substring(6,10) + input_value1.substring(3,5) + input_value1.substring(0,2); var ConvertEnd = input_value2.substring(6,10) + input_value2.substring(3,5) + input_value2.substring(0,2); if (ConvertStart > ConvertEnd) { alert(err_msg); input_obj1.focus(); return false; } return true; } function isValidDate(frm_obj,input_obj,input_value,err_msg) { if (input_value == "") { return true; } else { var datePat = /^(\d{2})(\/|)(\d{2})\2(\d{4})$/; var matchArray = input_value.match(datePat); // is the format ok? if (matchArray == null) { // incorrect format alert(err_msg); input_obj.focus(); return false; } day = matchArray[1]; // parse date into variables month = matchArray[3]; year = matchArray[4]; if (month < 1 || month > 12) { // check month range alert(err_msg); input_obj.focus(); return false; } if (day < 1 || day > 31) { alert(err_msg); input_obj.focus(); return false; } if ((month==4 || month==6 || month==9 || month==11) && day==31) { alert(err_msg); input_obj.focus(); return false; } if (month == 2) { // check for february 29th var isleap = (year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)); if (day>29 || (day==29 && !isleap)) { alert(err_msg); input_obj.focus(); return false; } } } return true; }
 
* Contact Name
  Company Name
* Email
(eg. abc@xyz.com)
  Address
  Country
* Contact Number
(eg. 03-1234567, please enter 031234567)
  Fax Number
(eg. 03-1234567, please enter 031234567)
  Remarks
* Verify your entry This Is CAPTCHA Image Code not clear? Click here
  Enter Code shown above
 
   

 

Back to Top   

Copyright © 2003 Besstem Plastics (M) Sdn. Bhd. All Rights Reserved. Web by Locus.