//Appends the value to the array //Returns the modified array function appendToArray(value, array) { temparray=newArray(lengthOf(array)+1); for (i=0; i