function in_array(needle, haystack) {
type = typeof needle if(type == ''string'' || type ==''number'') { for(var i in haystack) { if(haystack[i] == needle) { return true; } } } return false;}