var msg = new Array("Quit setup wizard and discard settings?",		// QUIT_WIZARD
				    "The Confirmed password does not match the New password.",	// MATCH_PWD_ERROR
				    "SSID can not be empty.",						// SSID_EMPTY_ERROR
				    "The Wep can not be disabled when the Authentication is in the Shared Key mode.",	// AUTH_TYPE_ERROR
				    "The selected wep key can not be empty.",		// WEP_KEY_EMPTY
				    "The length of Passphrase must be at least 8 characters.",	// PSK_LENGTH_ERROR
				    "The Confirmed Passphrase does not match the Passphrase.",	// PSK_MATCH_ERROR
				    "The IP address and the Gateway address are not in the same domain.",	// NOT_SAME_DOMAIN
				    "The Ending IP address must be greater than the Starting IP address.",	// IP_RANGE_ERROR
				    "Are you sure that you want to delete this MAC address?",			// DEL_MAC_FILTER
				    "This MAC address has already been in the filter list.",			// SAME_MAC_FILTER
				    "The legal characters of MAC address must be 0~9, A~F, or a~f.",	// MAC_ADDRESS_ERROR
				    "Please enter another MAC address.",				// EMPTY_MAC_FILTER
				    "Load Settings from file?",						// LOAD_SETTING
				    "Please select a file to upload.",				// LOAD_FILE_ERROR
				    "Restore To Factory Default Settings?",			// RESTORE_DEFAULT
				    "Please choose a firmware to upgrade.",			// FIRMWARE_UPGRADE_ERROR
				    "Are you sure that you want to delete this Static DHCP address?",	// DEL_STATIC_DHCP
				    "Please enter another Static DHCP name.",		// STATIC_DHCP_NAME
				    "The Retype Password does not match the Password.",	// MATCH_RETYPE_PWD_ERROR
				    "The confirm password does not match the new password in the Administrator section.", // ADMIN_PASS_ERROR
					"The confirm password does not match the new password in the User section.", // USER_PASS_ERROR
					"Restore To Factory Default Settings?",			// RESTORE_DEFAULT
					"Load Settings from file?",						// LOAD_SETTING
					"Please select a file to upload.",				// LOAD_FILE_ERROR
					"Please choose a firmware to upgrade.",			// FIRMWARE_UPGRADE_ERROR
					"Please enter either a host name or an ip address.", // PING_IP_ERROR
					"Are you sure to reboot the router?",			// REBOOT_ROUTER
					"Please enter another Server Address.",			// DDNS_SERVER_ERROR
					"Please enter another Host Name.",				// DDNS_HOST_ERROR
					"Please enter another User Name.",				// DDNS_USER_ERROR
					"Please enter another Password.",				// DDNS_PASS_ERROR
					"Please enter another SMTP Server or IP address", // SMTP_SERVER_ERROR
					"Please enter another email address.",			// EMAIL_ADDRESS_ERROR
					"Are you sure that you want to delete this server?", // DEL_SERVER_MSG
					"Are you sure that you want to delete this application?",	// DEL_APPLICATION_MSG
					"Are you sure that you want to delete this filter?", // DEL_FILTER_MSG
					"Are you sure that you want to delete this MAC address?", // DEL_MAC_MSG
					"Please enter another name.",	// NAME_ERROR
					"Please enter another private port number.",	// PRIVATE_PORT_ERROR
					"Please enter another public port number.",		// PUBLIC_PORT_ERROR			
					"Please enter another trigger port number.",	// TRIGGER_PORT_ERROR
					"Please enter another port number.",			// PORT_ERROR
					"Please select a keyword to delete.",			// DEL_KEYWORD_ERROR
					"Please select a blocked domain to delete.",	// DEL_BLOCK_DOMAIN_ERROR
					"Please select a permitted domain to delete.",	// DEL_PERMIT_DOMAIN_ERROR
					"The length of Passphrase is over 63 characters." // PSK_OVER_LEN
				   );
					   
var QUIT_WIZARD = 0;
var MATCH_PWD_ERROR = 1;
var SSID_EMPTY_ERROR = 2;
var AUTH_TYPE_ERROR = 3;
var WEP_KEY_EMPTY = 4;
var PSK_LENGTH_ERROR = 5;
var PSK_MATCH_ERROR = 6;
var NOT_SAME_DOMAIN = 7;
var IP_RANGE_ERROR = 8;
var DEL_MAC_FILTER = 9;
var SAME_MAC_FILTER = 10;
var MAC_ADDRESS_ERROR = 11;
var EMPTY_MAC_FILTER = 12;
var LOAD_SETTING = 13;
var LOAD_FILE_ERROR = 14;
var RESTORE_DEFAULT = 15;
var FIRMWARE_UPGRADE_ERROR = 16;
var DEL_STATIC_DHCP = 17;
var STATIC_DHCP_NAME = 18;
var MATCH_RETYPE_PWD_ERROR = 19;
var ADMIN_PASS_ERROR = 20;
var USER_PASS_ERROR = 21;
var RESTORE_DEFAULT = 22;
var LOAD_SETTING = 23;
var LOAD_FILE_ERROR = 24;
var FIRMWARE_UPGRADE_ERROR = 25;
var PING_IP_ERROR = 26;
var REBOOT_ROUTER = 27;
var DDNS_SERVER_ERROR = 28;
var DDNS_HOST_ERROR = 29;
var DDNS_USER_ERROR = 30;
var DDNS_PASS_ERROR = 31;
var SMTP_SERVER_ERROR = 32;
var EMAIL_ADDRESS_ERROR = 33;
var DEL_SERVER_MSG = 34;
var DEL_APPLICATION_MSG = 35;
var DEL_FILTER_MSG = 36;
var DEL_MAC_MSG = 37;
var NAME_ERROR = 38;
var PRIVATE_PORT_ERROR = 39;
var PUBLIC_PORT_ERROR = 40;
var TRIGGER_PORT_ERROR = 41;
var PORT_ERROR = 42;
var DEL_KEYWORD_ERROR = 43;
var DEL_BLOCK_DOMAIN_ERROR = 44;
var DEL_PERMIT_DOMAIN_ERROR = 45;
var PSK_OVER_LEN = 46;

/** for check_address() using **/
var radius1_msg = new Array("The Radius Server 1 IP address is an invalid address.",	// INVALID_IP
						    "The Radius Server 1 IP address can not be zero.",	// ZERO_IP
						    "The 1st address of Radius Server 1 IP address must be an integer.",	// FIRST_IP_ERROR
						    "The 2nd address of Radius Server 1 IP address must be an integer.",	// SECOND_IP_ERROR
						    "The 3rd address of Radius Server 1 IP address must be an integer.",	// THIRD_IP_ERROR
						    "The 4th address of Radius Server 1 IP address must be an integer.",	// FOURTH_IP_ERROR
						    "The 1st range of Radius Server 1 IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						    "The 2nd range of Radius Server 1 IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						    "The 3rd range of Radius Server 1 IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						    "The 4th range of Radius Server 1 IP address must be between 1 to 254.",			// FOURTH_RANGE_ERROR
						    "The port of Radius Server 1 is invalid.",	// RADIUS_SERVER_PORT_ERROR
						    "The Shared Secret of Radius Server 1 can not be empty." // RADIUS_SERVER_SECRET_ERROR
						    );						   
var radius2_msg = new Array("The Radius Server 2 IP address is an invalid address.",	// INVALID_IP
						    "The Radius Server 2 IP address can not be zero.",	// ZERO_IP
						    "The 1st address of Radius Server 2 IP address must be an integer.",	// FIRST_IP_ERROR
						    "The 2nd address of Radius Server 2 IP address must be an integer.",	// SECOND_IP_ERROR
						    "The 3rd address of Radius Server 2 IP address must be an integer.",	// THIRD_IP_ERROR
						    "The 4th address of Radius Server 2 IP address must be an integer.",	// FOURTH_IP_ERROR
						    "The 1st range of Radius Server 2 IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						    "The 2nd range of Radius Server 2 IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						    "The 3rd range of Radius Server 2 IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						    "The 4th range of Radius Server 2 IP address must be between 1 to 254.",			// FOURTH_RANGE_ERROR
						    "The port of Radius Server 2 is invalid.",	// RADIUS_SERVER_PORT_ERROR
						    "The Shared Secret of Radius Server 2 can not be empty." // RADIUS_SERVER_SECRET_ERROR
						    );
var ip_addr_msg = new Array("The IP address is an invalid address.",	// INVALID_IP
						    "The IP address can not be zero.",	// ZERO_IP
						    "The 1st address of IP address must be an integer.",	// FIRST_IP_ERROR
						    "The 2nd address of IP address must be an integer.",	// SECOND_IP_ERROR
						    "The 3rd address of IP address must be an integer.",	// THIRD_IP_ERROR
						    "The 4th address of IP address must be an integer.",	// FOURTH_IP_ERROR
						    "The 1st range of IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						    "The 2nd range of IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						    "The 3rd range of IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						    "The 4th range of IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						    );		
var subnet_mask_msg = new Array("The Subnet Mask is an invalid address.",	// INVALID_IP
						        "The Subnet Mask can not be zero.",	// ZERO_IP
						        "The 1st address of Subnet Mask must be an integer.",	// FIRST_IP_ERROR
						    	"The 2nd address of Subnet Mask must be an integer.",	// SECOND_IP_ERROR
						    	"The 3rd address of Subnet Mask must be an integer.",	// THIRD_IP_ERROR
						    	"The 4th address of Subnet Mask must be an integer.",	// FOURTH_IP_ERROR
						    	"The 1st range of Subnet Mask must be 128, 192, 224, 240, 248, 252, 254, 255.",			// FIRST_RANGE_ERROR
						    	"The 2nd range of Subnet Mask must be 0, 128, 192, 224, 240, 248, 252, 254, 255.",			// SECOND_RANGE_ERROR
						    	"The 3rd range of Subnet Mask must be 0, 128, 192, 224, 240, 248, 252, 254, 255.",			// THIRD_RANGE_ERROR
						    	"The 4th range of Subnet Mask must be 0, 128, 192, 224, 240, 248, 252, 254, 255."			// FOURTH_RANGE_ERROR						    
						    );	
var gateway_msg = new Array("The Gateway address is an invalid address.",	// INVALID_IP
						    "The Gateway address can not be zero.",	// ZERO_IP
						    "The 1st address of Gateway address must be an integer.",	// FIRST_IP_ERROR
						    "The 2nd address of Gateway address must be an integer.",	// SECOND_IP_ERROR
						    "The 3rd address of Gateway address must be an integer.",	// THIRD_IP_ERROR
						    "The 4th address of Gateway address must be an integer.",	// FOURTH_IP_ERROR
						    "The 1st range of Gateway address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						    "The 2nd range of Gateway address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						    "The 3rd range of Gateway address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						    "The 4th range of Gateway address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						    );
var dns_server_msg = new Array("The DNS Server is an invalid address.",	// INVALID_IP
						       "The DNS Server can not be zero.",	// ZERO_IP
						       "The 1st address of DNS Server must be an integer.",	// FIRST_IP_ERROR
						       "The 2nd address of DNS Server must be an integer.",	// SECOND_IP_ERROR
						       "The 3rd address of DNS Server must be an integer.",	// THIRD_IP_ERROR
						       "The 4th address of DNS Server must be an integer.",	// FOURTH_IP_ERROR
						       "The 1st range of DNS Server must be between 1 to 254.",			// FIRST_RANGE_ERROR
						       "The 2nd range of DNS Server must be between 0 to 254.",			// SECOND_RANGE_ERROR
						       "The 3rd range of DNS Server must be between 0 to 254.",			// THIRD_RANGE_ERROR
						       "The 4th range of DNS Server must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       );
var primary_dns_msg = new Array("The Primary DNS Address is an invalid address.",	// INVALID_IP
						        "The Primary DNS Address can not be zero.",	// ZERO_IP
						        "The 1st address of Primary DNS Address must be an integer.",	// FIRST_IP_ERROR
						        "The 2nd address of Primary DNS Address must be an integer.",	// SECOND_IP_ERROR
						        "The 3rd address of Primary DNS Address must be an integer.",	// THIRD_IP_ERROR
						        "The 4th address of Primary DNS Address must be an integer.",	// FOURTH_IP_ERROR
						        "The 1st range of Primary DNS Address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						        "The 2nd range of Primary DNS Address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						        "The 3rd range of Primary DNS Address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						        "The 4th range of Primary DNS Address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						        );
var second_dns_msg = new Array("The Secondary DNS Address is an invalid address.",	// INVALID_IP
						       "The Secondary DNS Address can not be zero.",	// ZERO_IP
						       "The 1st address of Secondary DNS Address must be an integer.",	// FIRST_IP_ERROR
						       "The 2nd address of Secondary DNS Address must be an integer.",	// SECOND_IP_ERROR
						       "The 3rd address of Secondary DNS Address must be an integer.",	// THIRD_IP_ERROR
						       "The 4th address of Secondary DNS Address must be an integer.",	// FOURTH_IP_ERROR
						       "The 1st range of Secondary DNS Address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						       "The 2nd range of Secondary DNS Address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						       "The 3rd range of Secondary DNS Address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						       "The 4th range of Secondary DNS Address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       );	
var server_ip_msg = new Array("The Server IP address is an invalid address.",	// INVALID_IP
						      "The Server IP address can not be zero.",	// ZERO_IP
						      "The 1st address of Server IP address must be an integer.",	// FIRST_IP_ERROR
						      "The 2nd address of Server IP address must be an integer.",	// SECOND_IP_ERROR
						      "The 3rd address of Server IP address must be an integer.",	// THIRD_IP_ERROR
						      "The 4th address of Server IP address must be an integer.",	// FOURTH_IP_ERROR
						      "The 1st range of Server IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						      "The 2nd range of Server IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						      "The 3rd range of Server IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						      "The 4th range of Server IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						      );	
var login_server_msg = new Array("The Login Server IP address is an invalid address.",	// INVALID_IP
						         "The Login Server IP address can not be zero.",	// ZERO_IP
						      	 "The 1st address of Login Server IP address must be an integer.",	// FIRST_IP_ERROR
						      	 "The 2nd address of Login Server IP address must be an integer.",	// SECOND_IP_ERROR
						      	 "The 3rd address of Login Server IP address must be an integer.",	// THIRD_IP_ERROR
						      	 "The 4th address of Login Server IP address must be an integer.",	// FOURTH_IP_ERROR
						      	 "The 1st range of Login Server IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						      	 "The 2nd range of Login Server IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						      	 "The 3rd range of Login Server IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						      	 "The 4th range of Login Server IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       	);						      					       					       					       
var log_server_msg = new Array("The Syslog Server is an invalid address.",	// INVALID_IP
						       "The Syslog Server can not be zero.",	// ZERO_IP
						       "The 1st address of Syslog Server must be an integer.",	// FIRST_IP_ERROR
						       "The 2nd address of Syslog Server must be an integer.",	// SECOND_IP_ERROR
						       "The 3rd address of Syslog Server must be an integer.",	// THIRD_IP_ERROR
						       "The 4th address of Syslog Server must be an integer.",	// FOURTH_IP_ERROR
						       "The 1st range of Syslog Server must be between 1 to 254.",			// FIRST_RANGE_ERROR
						       "The 2nd range of Syslog Server must be between 0 to 254.",			// SECOND_RANGE_ERROR
						       "The 3rd range of Syslog Server must be between 0 to 254.",			// THIRD_RANGE_ERROR
						       "The 4th range of Syslog Server must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       );		
var private_ip_msg = new Array("The Private IP is an invalid address.",	// INVALID_IP
						       "The Private IP can not be zero.",	// ZERO_IP
						       "The 1st address of Private IP must be an integer.",	// FIRST_IP_ERROR
						       "The 2nd address of Private IP must be an integer.",	// SECOND_IP_ERROR
						       "The 3rd address of Private IP must be an integer.",	// THIRD_IP_ERROR
						       "The 4th address of Private IP must be an integer.",	// FOURTH_IP_ERROR
						       "The 1st range of Private IP must be between 1 to 254.",			// FIRST_RANGE_ERROR
						       "The 2nd range of Private IP must be between 0 to 254.",			// SECOND_RANGE_ERROR
						       "The 3rd range of Private IP must be between 0 to 254.",			// THIRD_RANGE_ERROR
						       "The 4th range of Private IP must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       );	
var src_start_ip_msg = new Array("The Source Start IP address is an invalid address.",	// INVALID_IP
							     "The Source Start IP address can not be zero.",	// ZERO_IP
							     "The 1st address of Source Start IP address must be an integer.",	// FIRST_IP_ERROR
							     "The 2nd address of Source Start IP address must be an integer.",	// SECOND_IP_ERROR
							     "The 3rd address of Source Start IP address must be an integer.",	// THIRD_IP_ERROR
							     "The 4th address of Source Start IP address must be an integer.",	// FOURTH_IP_ERROR
							     "The 1st range of Source Start IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
							     "The 2nd range of Source Start IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
							     "The 3rd range of Source Start IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
							     "The 4th range of Source Start IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
							     );		
var src_end_ip_msg = new Array("The Source End IP address is an invalid address.",	// INVALID_IP
						       "The Source End IP address can not be zero.",	// ZERO_IP
						       "The 1st address of Source End IP address must be an integer.",	// FIRST_IP_ERROR
						       "The 2nd address of Source End IP address must be an integer.",	// SECOND_IP_ERROR
						       "The 3rd address of Source End IP address must be an integer.",	// THIRD_IP_ERROR
						       "The 4th address of Source End IP address must be an integer.",	// FOURTH_IP_ERROR
						       "The 1st range of Source End IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						       "The 2nd range of Source End IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						       "The 3rd range of Source End IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						       "The 4th range of Source End IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       );	
var dst_start_ip_msg = new Array("The Destination Start IP address is an invalid address.",	// INVALID_IP
							     "The Destination Start IP address can not be zero.",	// ZERO_IP
							     "The 1st address of Destination Start IP address must be an integer.",	// FIRST_IP_ERROR
							     "The 2nd address of Destination Start IP address must be an integer.",	// SECOND_IP_ERROR
							     "The 3rd address of Destination Start IP address must be an integer.",	// THIRD_IP_ERROR
							     "The 4th address of Destination Start IP address must be an integer.",	// FOURTH_IP_ERROR
							     "The 1st range of Destination Start IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
							     "The 2nd range of Destination Start IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
							     "The 3rd range of Destination Start IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
							     "The 4th range of Destination Start IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
							     );		
var dst_end_ip_msg = new Array("The Destination End IP address is an invalid address.",	// INVALID_IP
						       "The Destination End IP address can not be zero.",	// ZERO_IP
						       "The 1st address of Destination End IP address must be an integer.",	// FIRST_IP_ERROR
						       "The 2nd address of Destination End IP address must be an integer.",	// SECOND_IP_ERROR
						       "The 3rd address of Destination End IP address must be an integer.",	// THIRD_IP_ERROR
						       "The 4th address of Destination End IP address must be an integer.",	// FOURTH_IP_ERROR
						       "The 1st range of Destination End IP address must be between 1 to 254.",			// FIRST_RANGE_ERROR
						       "The 2nd range of Destination End IP address must be between 0 to 254.",			// SECOND_RANGE_ERROR
						       "The 3rd range of Destination End IP address must be between 0 to 254.",			// THIRD_RANGE_ERROR
						       "The 4th range of Destination End IP address must be between 1 to 254."			// FOURTH_RANGE_ERROR						    
						       );						       						     				       						       					       								    	
var start_ip4_msg = new Array("The Starting IP address is invalid.(IP Range: 1~254)",
							  "Please enter another Starting IP address."
							  );
var end_ip4_msg = new Array("The Enging IP address is invalid.(IP Range: 1~254)",
							"Please enter another Enging IP address."
						    );	
var static_ip4_msg = new Array("The Static DHCP IP address is invalid.(IP Range: 1~254)",
							   "Please enter another Static DHCP IP address."
						       );							    		    					    					    				   
var dmz_ip4_msg = new Array("The IP address is invalid.(IP Range: 1~254)",
							"Please enter another IP address."
						    );
var INVALID_IP = 0;
var ZERO_IP = 1;
var FIRST_IP_ERROR = 2;
var SECOND_IP_ERROR = 3;
var THIRD_IP_ERROR = 4;
var FOURTH_IP_ERROR = 5;
var FIRST_RANGE_ERROR = 6;
var SECOND_RANGE_ERROR = 7;
var THIRD_RANGE_ERROR = 8;
var FOURTH_RANGE_ERROR = 9;

var RADIUS_SERVER_PORT_ERROR = 10;	// for radius server 1
var RADIUS_SERVER_SECRET_ERROR = 11; // for radius server 2
/** the end of for check_address() using **/

/** for check_varible() using **/								  
var beacon_msg = new Array("Please enter another Beacon interval value.",
						   "The value of Beacon interval must be an integer.",
						   "The range of Beacon interval is 1 ~ 1000."
						   );

var rts_msg = new Array("Please enter another RTS Threshold value.",
						"The value of RTS Threshold must be an integer.",
						"The range of RTS Threshold is 256 ~ 2432."
						);
						   
var frag_msg = new Array("Please enter another Fragmentation value.",
						 "The value of Fragmentation must be an integer.",
						 "The range of Fragmentation is 256 ~ 2346.",
						 "The value of Fragmentation is even number only."
						 );
						 
var dtim_msg = new Array("Please enter another DTIM interval value.",
						 "The value of DTIM interval must be an integer.",
						 "The range of DTIM interval is 1 ~ 255."
						 );	
var max_idle_msg = new Array("Please enter another Maximum Idle Time value.",
							 "The value of Maximum Idle Time must be an integer.",
							 "The range of Maximum Idle Time is 0 ~ 9999."
							 );							 
var mtu_msg = new Array("Please enter another MTU value.",
						 "The value of MTU must be an integer.",
						 "The range of MTU is 200 ~ 1500."
						 );	
var EMPTY_VARIBLE_ERROR = 0;
var INVALID_VARIBLE_ERROR = 1;
var VARIBLE_RANGE_ERROR = 2;
var EVEN_NUMBER_ERROR = 3;
/** the end of check_varible() using **/

/** for get_key_len_msg() using **/
var key1_len_error = new Array("The length of Key1 must be 5 characters.",
							   "The length of Key1 must be 13 characters.",
							   "The length of Key1 must be 10 characters.",
							   "The length of Key1 must be 26 characters."
							   );
							   
var key2_len_error = new Array("The length of Key2 must be 5 characters.",
							   "The length of Key2 must be 13 characters.",
							   "The length of Key2 must be 10 characters.",
							   "The length of Key2 must be 26 characters."
							   );	
							   
var key3_len_error = new Array("The length of Key3 must be 5 characters.",
							   "The length of Key3 must be 13 characters.",
							   "The length of Key3 must be 10 characters.",
							   "The length of Key3 must be 26 characters."
							   );
							   
var key4_len_error = new Array("The length of Key4 must be 5 characters.",
							   "The length of Key4 must be 13 characters.",
							   "The length of Key4 must be 10 characters.",
							   "The length of Key4 must be 26 characters."
							   );
							   	
var key_len_error = new Array("The length of Key must be 10 characters.",
							  "The length of Key must be 26 characters."
							  );
							   							   						  							  						
var illegal_key_error = new Array("Key1 is wrong, the legal characters are 0~9, A~F, or a~f.",
								  "Key2 is wrong, the legal characters are 0~9, A~F, or a~f.",
								  "Key3 is wrong, the legal characters are 0~9, A~F, or a~f.",
								  "Key4 is wrong, the legal characters are 0~9, A~F, or a~f.",
								  "Key is wrong, the legal characters are 0~9, A~F, or a~f."								 
								  );
/** the end of get_key_len_msg() using **/								 
