function in_array(array,val)
{
	for(i=0;i<array.length;i++){
		if(val == array[i]){
			return true;
		}
	}
	
	return false;
}
