// <![CDATA[
/*
* Copyright: 2005 - 2007 SI Works Internet Solutions
* If you have come across this page, its cause you are snooping through code, and are generally a developer as such
* If you would like to use some of the code on this page, please simply email support@siworks.co.za and ask permission
* it would be much appreciated, as we have worked very hard on these func.tions() and scri.pts()
*
* Array of errors used when validating forms and within other functions
* @page errors.js
* @version 1.2.5
* @author Greg Shiers, Jarratt Ingram (SI Works Internet)
* @copyright: SI Works Internet Solutions 2005 - 2007
*/

/* Define the variables as arrays */
var error 	= [];
var message = [];

/*
* No function, just a list of errors for alerys
* @usage error[number]
* @returns string
* @version 1.0
*/
error[0] = "- Please enter your full name.\n";
error[1] = "- Please enter your phone number.\n";
error[2] = "- Your phone number in incorrectly formated\n";
error[3] = "- Please enter your email address.\n";
error[4] = "- Your email address is incorrectly formated.\n";
error[5] = "- Please enter a comment or message for us.\n";
error[6] = "- UNDEFINED!.\n";
error[7] = "- UNDEFINED!.\n";
error[8] = "- UNDEFINED!.\n";
error[9] = "- UNDEFINED!.\n";

error[10] = "- Please enter your full name.<br />\n";
error[11] = "- Please enter your company name.<br />\n";
error[12] = "- please enter your email address.<br />\n";
error[13] = "- Your email is incorrectly formatted. must contain one @ and atleast one (.).<br />\n";
error[14] = "- Please enter your telephone number.<br />\n";
error[15] = "- Your telephone number may only be numbers and spaces.<br />\n";
error[16] = "- Please enter a comment for us.<br />\n";
error[17] = "- UNDEFINED!.\n";
error[18] = "- UNDEFINED!.\n";
error[19] = "- UNDEFINED!.\n";
error[20] = "- UNDEFINED!.\n";
// Program errors
error[21] = "- Please enter a program name.<br />";
error[22] = "- Please enter a colour for the programm.<br />";
error[23] = "- Please enter a contact person for this program.<br />";
error[24] = "- Please enter an email address for the contact person.<br />";
error[25] = "- The email address for the contact person is incorrectly formated, required atleast 1 @ and 1 (.).<br />";
error[26] = "- UNDEFINED!.\n";
error[27] = "- UNDEFINED!.\n";
error[28] = "- UNDEFINED!.\n";
error[28] = "- UNDEFINED!.\n";
error[30] = "- UNDEFINED!.\n";
// Modules errors
error[31] = "- Please enter a name for this module.<br />";
error[32] = "- Please enter an attachment.<br />";
error[33] = "- Only the following attachment extensions are allowed: .txt, .doc, .pdf, .xls.<br />";
error[34] = "- UNDEFINED!.\n";
error[35] = "- UNDEFINED!.\n";
error[36] = "- UNDEFINED!.\n";
error[37] = "- UNDEFINED!.\n";
error[38] = "- UNDEFINED!.\n";
error[39] = "- UNDEFINED!.\n";
error[40] = "- UNDEFINED!.\n";

error[41] = "- Please enter a first name for this user<br />";
error[42] = "- Plase enter a surname for this user<br />";
error[43] = "- Please enter an email address for this user<br />";
error[44] = "- The email address for this user is incorrectly formated, required atleast 1 @ and 1 (.).<br />\n";
error[45] = "- Please select a password option.<br />";
error[46] = "- Please enter a password for this user.<br />";
error[47] = "- Please enter a confirm password for this user.<br />";
error[48] = "- The 2 passwords you have entered do not match.<br />";
error[49] = "- Please select the type of user.\n";
error[50] = "- UNDEFINED!.\n";
error[51] = "- UNDEFINED!.\n";
error[52] = "- UNDEFINED!.\n";
error[53] = "- UNDEFINED!.\n";
error[54] = "- UNDEFINED!.\n";
error[55] = "- UNDEFINED!.\n";

error[56] = "- Please enter the company name<br />";
error[57] = "- Please enter the VAT number for the company<br />";
error[58] = "- Please enter the contact person's first name<br />";
error[59] = "- Please enter the contact person's surname<br />";
error[60] = "- Plase enter the contact person's telepone number<br />";
error[61] = "- The telephone number you entered is incorrecly formated, only numbers and spaces<br />";
error[62] = "- Please enter the contact person's email address<br />";
error[63] = "- The email address for this client is incorrectly formated, required atleast 1 @ and 1 (.).<br />";
error[64] = "- Please enter a postal address for this client<br />";
error[65] = "- <br />";

error[66] = "- Please enter a name for the cell<br />";
error[67] = "- Please enter a venue for the cell<br />";
error[68] = "- Please select a cell type<br />";
error[69] = "- Please select the program the cell is going to be in<br />";
error[70] = "- Please enter a contact person's name<br />";
error[71] = "- Please enter the contact person's telephone number<br />";
error[72] = "- The contact person's telephone number is incorrectly formated, only numbers and spaces<br />";
error[73] = "- Please enter the contact person's company name<br />";
error[74] = "- Please enter the contact person's email address<br />";
error[75] = "- The contact person's email address is incorrecly formated, required atleast 1 @ and 1 (.).<br />";
error[76] = "- Please enter a shipping address<br />";
error[77] = "- Please enter the quantity of books you would like delivered<br />";
error[78] = "- Book quantity can only be numeric<br />";
error[79] = "- <br />";
error[80] = "- <br />";

/*
* No function, just a list of messages for confirms and other such
* @usage message[number]
* @returns string
* @version 1.0
*/
message[0] = "Are you sure you want to log out of your account?";
message[1] = "";
// ]]>
